forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrates the SENSEI in situ framework with AMReX. Adds SENSEI data adaptors, and bridge codes for Amr and AmrMesh classes, and is demonstrated through the Advection AmrLevel and AmrCore SingleVortex Tutorial.
- Loading branch information
Showing
62 changed files
with
25,144 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#ifndef AMReX_AmrDataAdaptor_h | ||
#define AMReX_AmrDataAdaptor_h | ||
|
||
#include "DataAdaptor.h" | ||
#include <AMReX_Amr.H> | ||
|
||
namespace amrex | ||
{ | ||
|
||
class AmrDataAdaptor : public sensei::DataAdaptor | ||
{ | ||
public: | ||
static AmrDataAdaptor* New(); | ||
senseiTypeMacro(AmrDataAdaptor, sensei::DataAdaptor); | ||
|
||
// set the source of the simulation data | ||
int SetDataSource(amrex::Amr *amr); | ||
|
||
// SENSEI API | ||
int GetNumberOfMeshes(unsigned int &numMeshes) override; | ||
int GetMeshName(unsigned int id, std::string &meshName) override; | ||
int GetMesh(const std::string &meshName, bool structureOnly, vtkDataObject *&mesh) override; | ||
int GetMeshHasGhostNodes(const std::string &meshName, int &nLayers) override; | ||
int AddGhostNodesArray(vtkDataObject* mesh, const std::string &meshName) override; | ||
int GetMeshHasGhostCells(const std::string &meshName, int &nLayers) override; | ||
int AddGhostCellsArray(vtkDataObject* mesh, const std::string &meshName) override; | ||
int AddArray(vtkDataObject* mesh, const std::string &meshName, int association, const std::string &arrayName) override; | ||
int GetNumberOfArrays(const std::string &meshName, int association, unsigned int &numberOfArrays) override; | ||
int GetArrayName(const std::string &meshName, int association, unsigned int index, std::string &arrayName) override; | ||
int ReleaseData() override; | ||
|
||
protected: | ||
AmrDataAdaptor(); | ||
~AmrDataAdaptor(); | ||
|
||
private: | ||
struct InternalsType; | ||
InternalsType *Internals; | ||
}; | ||
|
||
} | ||
|
||
#endif |
Oops, something went wrong.