Skip to content

Commit

Permalink
adding _GPU_ ifndef compile flag in reaction.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigfried Haering committed Oct 15, 2024
1 parent 20ad30a commit 78ff136
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/reaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ MFEM_HOST_DEVICE double GridFunctionReaction::computeRateCoefficient([[maybe_unu
}
}

#ifndef _GPU_
// Radiative decay portion: extracted from commit (de27f14)
MFEM_HOST_DEVICE RadiativeDecay::RadiativeDecay(const double _R, const std::map<std::string, int> *_speciesMapping,
const std::vector<std::string> *_speciesNames, const int *numSpecies,
Expand Down Expand Up @@ -298,3 +299,4 @@ MFEM_HOST_DEVICE double RadiativeDecay::escapeFactCalc(const double &n_i, const

return eta;
}
#endif

0 comments on commit 78ff136

Please sign in to comment.