We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65d33ce commit 5764b02Copy full SHA for 5764b02
src/readindata.cpp
@@ -884,7 +884,13 @@ void read_FOdata::regulate_surface_cells(std::vector<FO_surf> &surf_ptr) {
884
surf_i.Sn, visCoefficients);
885
status = 0;
886
} else {
887
- status = getValuesFromHRGEOS(surf_i.Edec, surf_i.Bn, eosVar);
+ status = getValuesFromHRGEOS(
888
+ surf_i.Edec, std::abs(surf_i.Bn), eosVar);
889
+ if (surf_i.Bn < 0.) {
890
+ eosVar[2] = - eosVar[2];
891
+ eosVar[3] = - eosVar[3];
892
+ eosVar[4] = - eosVar[4];
893
+ }
894
}
895
if (status == 0) { // success
896
//cout << "check: Tdec = " << surf_i.Tdec << " GeV, "
0 commit comments