-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed debug compilation on Lassen #1368
Conversation
// For a reason that I don't understand, adding this include | ||
// requires adding PVTPackage as a dependent of the physicsSolvers | ||
#include "pvt/pvt.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving the two compute
functions to the hpp file requires including pvt/pvt.hpp
in MultiFluidPVTPackageWrapper.hpp
. If I don't add PVTPackage
as a dependency of physicsSolvers
, then I get the error:
MultiFluidPVTPackageWrapper.hpp:25:10: fatal error: 'pvt/pvt.hpp' file not found
Apparently someone had run into the same issue before (see the deleted comment on GitHub). I spent some time trying to fix this but could not find a good solution. If someone knows how to make this works without making PVTPackage
a dependency of the physicsSolvers
, let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bmhan12 this isn't going to make your life any easier. Sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't PVTPackage
be a dependency of constitutive
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PVTPackage
was already a dependency of constitutive
:
https://github.com/GEOSX/GEOSX/blob/848d9e5e180d0bb90309704c4f8b300daa2c10be/src/coreComponents/constitutive/CMakeLists.txt#L119-L133
and this was enough when pvt/pvt.hpp
was included in MultiFluidPVTPackageWrapper.cpp
. Now that pvt/pvt.hpp
has to be included in MultiFluidPVTPackageWrapper.hpp
, it is not enough anymore, and the included file pvt/pvt.hpp
cannot be found (unless PVTPackage
is a also dependency of physicsSolvers
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't
PVTPackage
be a dependency ofconstitutive
?
It already is, but constitutive
isn't a dependency of physicsSolvers
:
https://github.com/GEOSX/GEOSX/blob/848d9e5e180d0bb90309704c4f8b300daa2c10be/src/coreComponents/physicsSolvers/CMakeLists.txt#L111-L115
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the last commit I made physicsSolvers
depend on constitutive
(and as before, constitutive
itself depends on PVTPackage
).
This PR moves the implementation of the two
MultiFluidPVTPackageWrapper::compute
functions toMultiFluidPVTPackageWrapper.hpp
in order to fix #1366.Resolves #1366