Skip to content

Commit

Permalink
Merge pull request #15 from seahorce-scidac/add_particles_to_erfh
Browse files Browse the repository at this point in the history
changes to ROMSX.H for particles
  • Loading branch information
asalmgren authored Aug 23, 2023
2 parents 51d95fd + 47ef39d commit 96027a4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Source/ROMSX.H
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#include <DataStruct.H>
#include <Derive.H>

#ifdef ERF_USE_PARTICLES
#include "TerrainFittedPC.H"
#endif

#ifdef ROMSX_USE_NETCDF
#include "NCWpsFile.H"
#endif
Expand All @@ -55,6 +59,10 @@ namespace InterpType {
};
}

#ifdef ERF_USE_PARTICLES
typedef amrex::ParticleContainer<AMREX_SPACEDIM, 0, 0, 0> TracerPC;
#endif

template<typename V, typename T>
bool containerHasElement(const V& iterable, const T& query) {
return std::find(iterable.begin(), iterable.end(), query) != iterable.end();
Expand Down Expand Up @@ -646,6 +654,11 @@ public:

void set_weights (int lev);

#ifdef ERF_USE_PARTICLES
std::unique_ptr<TerrainFittedPC> tracer_particles;
static amrex::Vector<std::string> tracer_particle_varnames;
#endif

private:

///////////////////////////
Expand Down

0 comments on commit 96027a4

Please sign in to comment.