Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ remove_if_exists()

void pism::io::remove_if_exists ( MPI_Comm  com,
const std::string &  file_to_remove,
int  rank_to_use 
)

Check if a file is present are remove it.

Note: only processor 0 does the job.

Definition at line 1323 of file io_helpers.cc.

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

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