Skip to content

Commit

Permalink
Change order
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed May 4, 2023
1 parent 8160ddd commit c4a57c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion unit_tests/UnitTestHelperObjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ struct HelperObjectsBase
// hack
// realm.setup_field_manager();
const int numStates = 3;
realm.fieldManager_ = std::make_unique<sierra::nalu::FieldManager>(realm.meta_data(), numStates);
realm.fieldManager_ = std::make_unique<sierra::nalu::FieldManager>(
realm.meta_data(), numStates);
}

virtual ~HelperObjectsBase() { delete naluObj; }
Expand Down
8 changes: 4 additions & 4 deletions unit_tests/node_kernels/UnitTestSSTNodeKernel.C
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,6 @@ TEST_F(SSTKernelHex8Mesh, NGP_tke_sst_node)
if (bulk_->parallel_size() > 1)
return;

// TDODO we can eliminate all the excess fields if we decide to do our field
// init after we add the kernels
fill_mesh_and_init_fields();

// Setup solution options
solnOpts_.meshMotion_ = false;
solnOpts_.externalMeshDeformation_ = false;
Expand All @@ -651,6 +647,10 @@ TEST_F(SSTKernelHex8Mesh, NGP_tke_sst_node)
helperObjs.nodeAlg->add_kernel<sierra::nalu::TKESSTNodeKernel>(
*meta_, *(helperObjs.realm.fieldManager_.get()), partVec_[0]);

// TDODO we can eliminate all the excess fields if we decide to do our field
// init after we add the kernels
fill_mesh_and_init_fields();

helperObjs.execute();

Kokkos::deep_copy(
Expand Down

0 comments on commit c4a57c1

Please sign in to comment.