PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches

◆ move_if_exists()

void pism::io::move_if_exists ( MPI_Comm  com,
const std::string &  file_to_move,
int  rank_to_use 
)

Moves the file aside (file.nc -> file.nc~).

Note: only one processor does the renaming.

Definition at line 121 of file output_helpers.cc.

References pism::RuntimeError::formatted(), and PISM_ERROR_LOCATION.

Referenced by pism::File::open().