mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix cmake handling
- use imported target for linking - use separate damaris cmake script - handle HAVE_DAMARIS config variable in the usual way fixing issues when user does not provide an outputDir via a command_line avoid adding damaris's command lines when we dont have damaris
This commit is contained in:
committed by
Elyes Ahmed
parent
0a7f7e94b7
commit
ecc36f6ce8
@@ -38,6 +38,9 @@ std::string initDamarisXmlFile(); // Defined in initDamarisXMLFile.cpp, to avoid
|
||||
void
|
||||
initializeDamaris(MPI_Comm comm, int mpiRank, std::string outputDir, bool enableDamarisOutputCollective)
|
||||
{
|
||||
if (outputDir.empty()) {
|
||||
outputDir = ".";
|
||||
}
|
||||
// Prepare the XML file
|
||||
std::string damaris_config_xml = initDamarisXmlFile();
|
||||
damaris::model::ModifyModel myMod = damaris::model::ModifyModel(damaris_config_xml);
|
||||
|
||||
Reference in New Issue
Block a user