Skip to content

Commit

Permalink
copy Blueprint mesh to host
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Sep 7, 2023
1 parent 50b22e1 commit 12f73a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/simulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1694,8 +1694,12 @@ template <typename problem_t> void AMRSimulation<problem_t>::RenderAscent()
conduit::Node blueprintMesh;
amrex::MultiLevelToBlueprint(finest_level + 1, mf_ptr, varnames, rescaledGeom, tNew_[0], istep, refRatio(), blueprintMesh);

// copy to host mem (needed for DataBinning)
conduit::Node bpMeshHost;
bpMeshHost.set(blueprintMesh);

// pass Blueprint mesh to Ascent, run actions
AscentCustomActions(blueprintMesh);
AscentCustomActions(bpMeshHost);
}
#endif // AMREX_USE_ASCENT

Expand Down

0 comments on commit 12f73a3

Please sign in to comment.