MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / openFile

Function openFile

Src/Base/AMReX_parstream.cpp:81–91  ·  view source on GitHub ↗

in parallel, close the file if nec., open it and check for success

Source from the content-addressed store, hash-verified

79
80// in parallel, close the file if nec., open it and check for success
81 void openFile()
82 {
83 if ( s_pout_open )
84 {
85 s_pout.close();
86 }
87 s_pout.open( s_pout_filename.c_str() );
88 // if open() fails, we have problems, but it's better
89 // to try again later than to make believe it succeeded
90 s_pout_open = (bool)s_pout ;
91 }
92
93#else
94// in serial, filename is always cout

Callers 2

setPoutBaseNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected