Skip to content

Commit

Permalink
commented some error messages that the gpu does not like
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigfried Haering committed Aug 22, 2024
1 parent cb1be77 commit dabe103
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/equation_of_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,23 +545,23 @@ MFEM_HOST_DEVICE PerfectMixture::PerfectMixture(PerfectMixtureInput inputs, int
SetSpeciesStateIndices();

// We assume the background species is neutral.
if (gasParams[(iBackground) + GasParams::SPECIES_CHARGES * numSpecies] != 0.0) {
std::cout << "(" << iBackground << ") Error: background species not nuetral: "
<< gasParams[(iBackground) + GasParams::SPECIES_CHARGES * numSpecies] << endl;
}
//if (gasParams[(iBackground) + GasParams::SPECIES_CHARGES * numSpecies] != 0.0) {
// std::cout << "(" << iBackground << ") Error: background species not nuetral: "
// << gasParams[(iBackground) + GasParams::SPECIES_CHARGES * numSpecies] << endl;
//}
assert(gasParams[(iBackground) + GasParams::SPECIES_CHARGES * numSpecies] == 0.0);
// TODO(kevin): release electron species enforcing.
assert(inputs.isElectronIncluded);
// We assume the background species and electron have zero formation energy.
if (gasParams[(iElectron) + GasParams::FORMATION_ENERGY * numSpecies] != 0.0) {
std::cout << "(" << iElectron << ") Error: electron formation energy non-zero: "
<< gasParams[(iElectron) + GasParams::FORMATION_ENERGY * numSpecies] << endl;
}
//if (gasParams[(iElectron) + GasParams::FORMATION_ENERGY * numSpecies] != 0.0) {
// std::cout << "(" << iElectron << ") Error: electron formation energy non-zero: "
// << gasParams[(iElectron) + GasParams::FORMATION_ENERGY * numSpecies] << endl;
//}
assert(gasParams[(iElectron) + GasParams::FORMATION_ENERGY * numSpecies] == 0.0);
if (gasParams[(iBackground) + GasParams::FORMATION_ENERGY * numSpecies] != 0.0) {
std::cout << "(" << iBackground << ") Error: background formation energy non-zero: "
<< gasParams[(iBackground) + GasParams::FORMATION_ENERGY * numSpecies] << endl;
}
//if (gasParams[(iBackground) + GasParams::FORMATION_ENERGY * numSpecies] != 0.0) {
// std::cout << "(" << iBackground << ") Error: background formation energy non-zero: "
// << gasParams[(iBackground) + GasParams::FORMATION_ENERGY * numSpecies] << endl;
//}
assert(gasParams[(iBackground) + GasParams::FORMATION_ENERGY * numSpecies] == 0.0);

for (int sp = 0; sp < gpudata::MAXSPECIES; sp++) {
Expand Down

0 comments on commit dabe103

Please sign in to comment.