Skip to content

Commit

Permalink
Remove crufty comments
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed Apr 18, 2024
1 parent 547dfe6 commit 877a49d
Showing 1 changed file with 6 additions and 64 deletions.
70 changes: 6 additions & 64 deletions unit_tests/kernels/UnitTestKernelUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,47 +269,16 @@ class TestKernelHex8Mesh : public ::testing::Test

naluGlobalId_ = fieldManager->register_field<stk::mesh::EntityId>("nalu_global_id", parts);
tpetGlobalId_ = fieldManager->register_field<sierra::nalu::TpetIdType>("tpet_global_id", parts);
fieldManager->register_field("dual_nodal_volume", parts, 3);
dnvField_ = fieldManager->get_field_ptr<double>("dual_nodal_volume");
dnvField_ = fieldManager->register_field<double>("dual_nodal_volume", parts);
divMeshVelField_ = fieldManager->register_field<double>("div_mesh_velocity", parts);
edgeAreaVec_ = fieldManager->register_field<double>("edge_area_vector", parts);
elementVolume_ = fieldManager->register_field<double>("element_volume", parts);
// need to check on this one
// currently don't handle side ranks
exposedAreaVec_ =
&meta_->declare_field<double>(meta_->side_rank(), "exposed_area_vector");
stk::mesh::put_field_on_mesh(
*exposedAreaVec_, meta_->universal_part(),
spatialDim_ * sierra::nalu::AlgTraitsQuad4::numScsIp_, nullptr);


/*
naluGlobalId_ = &meta_->declare_field<stk::mesh::EntityId>(
stk::topology::NODE_RANK, "nalu_global_id", 1);
tpetGlobalId_ = &meta_->declare_field<sierra::nalu::TpetIdType>(
stk::topology::NODE_RANK, "tpet_global_id", 1);
dnvField_ = &meta_->declare_field<double>(
stk::topology::NODE_RANK, "dual_nodal_volume", 3);
divMeshVelField_ = &meta_->declare_field<double>(
stk::topology::NODE_RANK, "div_mesh_velocity");
edgeAreaVec_ = &meta_->declare_field<double>(
stk::topology::EDGE_RANK, "edge_area_vector");
elementVolume_ =
&meta_->declare_field<double>(stk::topology::ELEM_RANK, "element_volume");
stk::mesh::put_field_on_mesh(
*naluGlobalId_, meta_->universal_part(), nullptr);
stk::mesh::put_field_on_mesh(
*tpetGlobalId_, meta_->universal_part(), nullptr);
stk::mesh::put_field_on_mesh(*dnvField_, meta_->universal_part(), nullptr);
stk::mesh::put_field_on_mesh(
*divMeshVelField_, meta_->universal_part(), nullptr);
stk::mesh::put_field_on_mesh(
*edgeAreaVec_, meta_->universal_part(), spatialDim_, nullptr);
stk::io::set_field_output_type(
*edgeAreaVec_, stk::io::FieldOutputType::VECTOR_3D);
stk::mesh::put_field_on_mesh(
*elementVolume_, meta_->universal_part(), nullptr);
*/
}

virtual ~TestKernelHex8Mesh() {}
Expand Down Expand Up @@ -388,39 +357,12 @@ class LowMachKernelHex8Mesh : public TestKernelHex8Mesh
pressure_ = fieldManager->register_field<double>("pressure", parts);
Udiag_ = fieldManager->register_field<double>("momentum_diag", parts);
velocityBC_ = fieldManager->register_field<double>("velocity_bc", parts);
// dynP_ = fieldManager->register_field<double>("dynamic_pressure", parts);


// velocity_(
// &meta_->declare_field<double>(stk::topology::NODE_RANK, "velocity", 2)),
// dpdx_(&meta_->declare_field<double>(stk::topology::NODE_RANK, "dpdx", 2)),
// density_(
// &meta_->declare_field<double>(stk::topology::NODE_RANK, "density", 2)),
// pressure_(
// &meta_->declare_field<double>(stk::topology::NODE_RANK, "pressure", 2)),
// Udiag_(&meta_->declare_field<double>(
// stk::topology::NODE_RANK, "momentum_diag", 2)),
// velocityBC_(
// &meta_->declare_field<double>(stk::topology::NODE_RANK, "velocity_bc")),

// currently don't handle side ranks
dynP_ =
&meta_->declare_field<double>(meta_->side_rank(), "dynamic_pressure");
// stk::mesh::put_field_on_mesh(
// *velocity_, meta_->universal_part(), spatialDim_, nullptr);
// stk::io::set_field_output_type(
// *velocity_, stk::io::FieldOutputType::VECTOR_3D);
// stk::mesh::put_field_on_mesh(
// *dpdx_, meta_->universal_part(), spatialDim_, nullptr);
// stk::io::set_field_output_type(*dpdx_, stk::io::FieldOutputType::VECTOR_3D);
// stk::mesh::put_field_on_mesh(*density_, meta_->universal_part(), nullptr);
// stk::mesh::put_field_on_mesh(*pressure_, meta_->universal_part(), nullptr);
// stk::mesh::put_field_on_mesh(*Udiag_, meta_->universal_part(), nullptr);
// stk::mesh::put_field_on_mesh(
// *velocityBC_, meta_->universal_part(), spatialDim_, nullptr);
// stk::io::set_field_output_type(
// *velocityBC_, stk::io::FieldOutputType::VECTOR_3D);
stk::mesh::put_field_on_mesh(
*dynP_, meta_->universal_part(), sierra::nalu::AlgTraitsQuad4::numScsIp_,
nullptr);
stk::mesh::put_field_on_mesh(
*dynP_, meta_->universal_part(), sierra::nalu::AlgTraitsQuad4::numScsIp_, nullptr);
}

virtual ~LowMachKernelHex8Mesh() {}
Expand Down

0 comments on commit 877a49d

Please sign in to comment.