|
| v0.14.0
|
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
|
static char | help [] = "...\n\n" |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 13 of file record_series_atom.cpp.
22 MPI_Comm_rank(PETSC_COMM_WORLD, &rank);
25 PetscBool flg = PETSC_TRUE;
27 #if PETSC_VERSION_GE(3, 6, 4)
34 if (flg != PETSC_TRUE) {
35 SETERRQ(PETSC_COMM_SELF, 1,
"*** ERROR -my_file (MESH FILE NEEDED)");
38 #if PETSC_VERSION_GE(3, 6, 4)
130 typedef tee_device<std::ostream, std::ofstream>
TeeDevice;
132 std::ofstream ofs(
"record_series_atom.txt");
140 my_split <<
"TEST_SERIES1" << std::endl;
145 sit->get_step_number());
147 my_split <<
"next step:\n";
148 my_split << *sit << std::endl;
153 dofs_view.insert(*dof);
155 for (DofEntity_multiIndex_uid_view::iterator dit = dofs_view.begin();
156 dit != dofs_view.end(); dit++) {
157 my_split << **dit << endl;
162 my_split <<
"TEST_SERIES2" << std::endl;
167 sit->get_step_number());
169 my_split <<
"next step:\n";
173 dofs_view.insert(*dof);
175 for (DofEntity_multiIndex_uid_view::iterator dit = dofs_view.begin();
176 dit != dofs_view.end(); dit++) {
177 my_split << **dit << endl;
183 dofs_view.insert(*dof);
185 for (DofEntity_multiIndex_uid_view::iterator dit = dofs_view.begin();
186 dit != dofs_view.end(); dit++) {
187 my_split << **dit << endl;
◆ help
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
virtual MoFEMErrorCode record_field(const std::string &serie_name, const std::string &field_name, const BitRefLevel &bit, const BitRefLevel &mask)
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
virtual MoFEMErrorCode add_ents_to_field_by_type(const Range &ents, const EntityType type, const std::string &name, int verb=DEFAULT_VERBOSITY)=0
Add entities to field meshset.
multi_index_container< boost::shared_ptr< DofEntity >, indexed_by< ordered_unique< const_mem_fun< DofEntity, UId, &DofEntity::getLocalUniqueId > > > > DofEntity_multiIndex_uid_view
multi-index view on DofEntity by uid
Deprecated interface functions.
DeprecatedCoreInterface Interface
virtual MoFEMErrorCode add_series_recorder(const std::string &series_name)
#define CHKERR
Inline error check.
virtual MoFEMErrorCode print_series_steps()
virtual MoFEMErrorCode record_begin(const std::string &serie_name)
virtual MoFEMErrorCode finalize_series_recorder(const std::string &serie_name)
virtual MoFEMErrorCode load_series_data(const std::string &serie_name, const int step_number)
#define _IT_SERIES_STEPS_BY_NAME_FOR_LOOP_(RECORDER, NAME, IT)
loop over recorded series step
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
#define CATCH_ERRORS
Catch errors.
#define _IT_GET_DOFS_FIELD_BY_NAME_FOR_LOOP_(MFIELD, NAME, IT)
@ AINSWORTH_LEGENDRE_BASE
Ainsworth Cole (Legendre) approx. base .
PetscErrorCode PetscOptionsGetString(PetscOptions *, const char pre[], const char name[], char str[], size_t size, PetscBool *set)
virtual MoFEMErrorCode build_fields(int verb=DEFAULT_VERBOSITY)=0
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
virtual MoFEMErrorCode initialize_series_recorder(const std::string &serie_name)
virtual MoFEMErrorCode set_field_order(const EntityHandle meshset, const EntityType type, const std::string &name, const ApproximationOrder order, int verb=DEFAULT_VERBOSITY)=0
Set order approximation of the entities in the field.
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
virtual MoFEMErrorCode add_field(const std::string name, const FieldSpace space, const FieldApproximationBase base, const FieldCoefficientsNumber nb_of_coefficients, const TagType tag_type=MB_TAG_SPARSE, const enum MoFEMTypes bh=MF_EXCL, int verb=DEFAULT_VERBOSITY)=0
Add field.
virtual MoFEMErrorCode record_end(const std::string &serie_name, double time=0)