Skip to content

Commit

Permalink
remove valgrind call from gpu kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
multitalentloes committed Sep 16, 2024
1 parent bde10e6 commit 1e3c6b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion opm/material/fluidstates/FluidStateSaturationModules.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ class FluidStateExplicitSaturationModule
{
public:
OPM_HOST_DEVICE FluidStateExplicitSaturationModule()
{ Valgrind::SetUndefined(saturation_); }
{
#if !OPM_IS_INSIDE_DEVICE_FUNCTION
Valgrind::SetUndefined(saturation_);
#endif
}

/*!
* \brief The saturation of a fluid phase [-]
Expand Down

0 comments on commit 1e3c6b4

Please sign in to comment.