|
| v0.14.0
|
Go to the documentation of this file.
10 using namespace MoFEM;
12 static char help[] =
"...\n\n";
14 int main(
int argc,
char *argv[]) {
22 PetscBool flg_file = PETSC_FALSE;
24 ierr = PetscOptionsBegin(PETSC_COMM_WORLD,
"",
"none",
"none");
27 CHKERR PetscOptionsString(
"-my_file",
"mesh file name",
"",
"mesh.h5m",
30 ierr = PetscOptionsEnd();
35 ParallelComm *pcomm = ParallelComm::get_pcomm(&moab,
MYPCOMM_INDEX);
37 pcomm =
new ParallelComm(&moab, PETSC_COMM_WORLD);
47 if (flg_file != PETSC_TRUE) {
48 SETERRQ(PETSC_COMM_SELF, 1,
"*** ERROR -my_file (MESH FILE NEEDED)");
59 std::string
type =
"_";
67 std::string name =
"meshset" +
type +
68 boost::lexical_cast<std::string>(cit.getMeshsetId()) +
70 std::cout <<
"Writting file: " << name << endl;
73 cit.getMeshsetId(), (cit.getBcType() & mask).to_ulong(), name);
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
#define MYPCOMM_INDEX
default communicator number PCOMM
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Deprecated interface functions.
DeprecatedCoreInterface Interface
#define CHKERR
Inline error check.
MoFEMErrorCode saveMeshsetToFile(const int ms_id, const unsigned int cubit_bc_type, const std::string file_name="out_meshset.vtk", const std::string file_type="VTK", const std::string options="") const
save cubit meshset entities on the moab mesh
implementation of Data Operators for Forces and Sources
MoFEMErrorCode setMeshsetFromFile(const string file_name, const bool clean_file_options=true)
add blocksets reading config file
int main(int argc, char *argv[])
CubitMeshSet_multiIndex & getMeshsetsMultindex()
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
std::bitset< 32 > CubitBCType
#define CATCH_ERRORS
Catch errors.
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Interface for managing meshsets containing materials and boundary conditions.