BISICLES AMR ice sheet model  0.9
Functions
ReadLevelData.cpp File Reference

Functions

void readLevelData (Vector< RefCountedPtr< LevelData< FArrayBox > > > &a_data, Real &a_dx, const std::string a_file, const Vector< std::string > &a_names, int a_nComp)
 
void readMultiLevelData (Vector< Vector< RefCountedPtr< LevelData< FArrayBox > > > > &a_data, Real &a_crseDx, Vector< int > &a_refRatio, const std::string a_file, const Vector< std::string > &a_names, int a_nComp)
 create one or more AMR Hieracrhies from data stored in an AMR file More...
 

Function Documentation

◆ readLevelData()

void readLevelData ( Vector< RefCountedPtr< LevelData< FArrayBox > > > &  a_data,
Real &  a_dx,
const std::string  a_file,
const Vector< std::string > &  a_names,
int  a_nComp 
)

◆ readMultiLevelData()

void readMultiLevelData ( Vector< Vector< RefCountedPtr< LevelData< FArrayBox > > > > &  a_data,
Real &  a_crseDx,
Vector< int > &  a_refRatio,
const std::string  a_file,
const Vector< std::string > &  a_names,
int  a_nComp 
)

create one or more AMR Hieracrhies from data stored in an AMR file

Parameters
Vector<Vector<RefCountedPtr<LevelData<FArrayBox>> > > a_data : each Vector<RefCountedPtr<LevelData<FArrayBox> > > is an AMR hierarchy.
a_crseDx: mesh spacing on level 0
a_refRatio: refinement ratio between meshes.
a_file: file name to read from
a_name: for each name in a_names look for either (a) a single component LevelData named "name" (b) a multi-component LevelData, stored consecutively and beginning with name
a_nComp: the number of components in each heirachy

Referenced by init_bisicles_instance(), main(), BasalFriction::parse(), MuCoefficient::parseMuCoefficient(), readLevelData(), and MultiLevelDataSurfaceFlux::surfaceThicknessFlux().