18 <<
" Setting orthogonal boundaries.";
24 auto vol_cont = handler.GetGrid();
30 for (
auto& cell : vol_cont->local_cells)
31 for (
auto& face : cell.faces_)
32 if (not face.has_neighbor_)
36 std::string boundary_name;
37 if (n.
Dot(ihat)>0.999) boundary_name =
"XMAX";
38 else if (n.
Dot(ihat)<-0.999) boundary_name =
"XMIN";
39 else if (n.
Dot(jhat)> 0.999) boundary_name =
"YMAX";
40 else if (n.
Dot(jhat)<-0.999) boundary_name =
"YMIN";
41 else if (n.
Dot(khat)> 0.999) boundary_name =
"ZMAX";
42 else if (n.
Dot(khat)<-0.999) boundary_name =
"ZMIN";
44 uint64_t bndry_id = vol_cont->MakeBoundaryID(boundary_name);
46 face.neighbor_id_ = bndry_id;
48 vol_cont->GetBoundaryIDMap()[bndry_id] = boundary_name;
54 <<
" Done setting orthogonal boundaries.";
static chi::Timer program_timer
static chi::MPI_Info & mpi
LogStream Log(LOG_LVL level=LOG_0)
std::string GetTimeString() const
static void SetupOrthogonalBoundaries()
MeshHandler & GetCurrentHandler()
Vector3 Dot(const chi_mesh::TensorRank2Dim3 &that) const