Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/dataBlock/fargo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Fargo::Fargo(Input &input, int nmax, DataBlock *data) {
}

#if GEOMETRY == CARTESIAN || GEOMETRY == POLAR
#if DIMENSIONS < 2
IDEFIX_ERROR("Fargo should be used with DIMENSIONS >= 2 in Cartesian or Polar geometries");
#endif
// Check if there is a domain decomposition in the intended fargo direction
if(data->mygrid->nproc[JDIR]>1) {
haveDomainDecomposition = true;
Expand All @@ -80,6 +83,9 @@ Fargo::Fargo(Input &input, int nmax, DataBlock *data) {
this->meanVelocity = IdefixArray2D<real>("FargoVelocity",data->np_tot[KDIR],
data->np_tot[IDIR]);
#elif GEOMETRY == SPHERICAL
#if DIMENSIONS < 3
IDEFIX_ERROR("Fargo should be used with DIMENSIONS == 3 in Spherical geometry");
#endif
// Check if there is a domain decomposition in the intended fargo direction
if(data->mygrid->nproc[KDIR]>1) {
haveDomainDecomposition = true;
Expand Down