Fix quadmath problems on ppc64el with IEEE long double

Completes fix of Debian bug #1114005
This commit is contained in:
Markus Blatt committed 2025-10-06 12:58:32 +02:00
1 parent 2d327a6d32
commit 1acce0db7a
2 files changed
+3 -5

No files matched your search

+1 -3
View File
@@ -371,12 +371,10 @@ macro (sources_hook)
if(QuadMath_FOUND)
get_target_property(qm_defs QuadMath::QuadMath INTERFACE_COMPILE_DEFINITIONS)
list(APPEND qm_defs HAVE_QUAD=1)
get_target_property(qm_options QuadMath::QuadMath INTERFACE_COMPILE_OPTIONS)
set_source_files_properties(opm/models/nonlinear/newtonmethodparams.cpp
opm/models/utils/parametersystem.cpp
opm/models/utils/simulatorutils.cpp
PROPERTIES COMPILE_DEFINITIONS "${qm_defs}"
COMPILE_OPTIONS "${qm_options}")
PROPERTIES COMPILE_DEFINITIONS "${qm_defs}")
endif()
endmacro (sources_hook)
+2 -2
View File
@@ -289,7 +289,7 @@ public:
}
// make the weight of the temperature primary variable inversly proportional to its value
return std::max(1.0 / 1000,
return std::max(static_cast<Scalar>(1.0) / 1000,
1.0 / model.solution(/*timeIdx=*/0)[globalDofIdx][temperatureIdx]);
}
@@ -306,7 +306,7 @@ public:
// approximate change of internal energy of 1kg of liquid water for a temperature
// change of 30K
return 1.0 / (4.184e3 * 30.0);
return static_cast<Scalar>(1.0) / (4.184e3 * 30.0);
}
/*!