24 <<
" VolumeMesherExtruder executed. Memory in use = "
30 <<
"VolumeMesherExtruder: Processing Region"
43 <<
"VolumeMesherExtruder: Setting up layers" << std::endl;
50 <<
"VolumeMesherExtruder: Processing unpartitioned mesh"
59 <<
"VolumeMesherExtruder: Creating template cells" << std::endl;
62 grid->GetBoundaryIDMap() =
64 temp_grid->GetBoundaryIDMap() =
69 <<
"VolumeMesherExtruder: Creating local nodes" << std::endl;
73 <<
"VolumeMesherExtruder: Done creating local nodes" << std::endl;
77 auto& grid_bndry_id_map = grid->GetBoundaryIDMap();
86 <<
"VolumeMesherExtruder: Extruding cells" << std::endl;
90 size_t total_local_cells = grid->local_cells.size();
91 size_t total_global_cells = 0;
93 MPI_Allreduce(&total_local_cells,
96 MPI_UNSIGNED_LONG_LONG,
101 <<
"VolumeMesherExtruder: Cells extruded = "
102 << total_global_cells
109 <<
"Any partitioning scheme other than KBA_STYLE_XYZ is currently not"
110 " supported by VolumeMesherExtruder. No worries. There are plans"
111 " to develop this support.";
118 if (
Chi::mpi.process_count != p_tot)
121 <<
"ERROR: Number of processors available ("
123 <<
"required by surface mesher partitioning parameters ("
134 <<
"] amount of local cells="
135 << grid->local_cells.size();
138 <<
"VolumeMesherExtruder: Number of cells in region = "
139 << total_global_cells
static chi::Timer program_timer
static void Exit(int error_code)
static chi::MPI_Info & mpi
LogStream LogAllVerbose1()
LogStream Log(LOG_LVL level=LOG_0)
static double GetMemoryUsageInMB()
Get current memory usage in Megabytes.
const int & process_count
Total number of processes.
const int & location_id
Current process rank.
std::string GetTimeString() const
static std::shared_ptr< MeshContinuum > New()
size_t node_z_index_incr_
const TemplateType template_type_
void CreateLocalNodes(chi_mesh::MeshContinuum &template_grid, chi_mesh::MeshContinuum &grid)
std::shared_ptr< const UnpartitionedMesh > template_unpartitioned_mesh_
void ExtrudeCells(chi_mesh::MeshContinuum &template_grid, chi_mesh::MeshContinuum &grid)
void SetupLayers(int default_layer_count=1)
void SetContinuum(MeshContinuumPtr &grid)
static void CreatePolygonCells(const chi_mesh::UnpartitionedMesh &umesh, chi_mesh::MeshContinuumPtr &grid)
void SetGridAttributes(MeshAttributes new_attribs, std::array< size_t, 3 > ortho_Nis={0, 0, 0})
VOLUME_MESHER_OPTIONS options
PartitionType partition_type