Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
4a8e3683
Commit
4a8e3683
authored
3 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[A/AppLib] Fwd. CLI args to Simulation::initializeDataStructures().
parent
1551deb1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Applications/ApplicationsLib/Simulation.cpp
+11
-10
11 additions, 10 deletions
Applications/ApplicationsLib/Simulation.cpp
Applications/ApplicationsLib/Simulation.h
+1
-1
1 addition, 1 deletion
Applications/ApplicationsLib/Simulation.h
with
12 additions
and
11 deletions
Applications/ApplicationsLib/Simulation.cpp
+
11
−
10
View file @
4a8e3683
...
...
@@ -10,18 +10,17 @@
*
*/
#include
<spdlog/spdlog.h>
#include
"Simulation.h"
#include
<spdlog/spdlog.h>
#include
"Applications/ApplicationsLib/LinearSolverLibrarySetup.h"
#include
"Applications/ApplicationsLib/ProjectData.h"
#include
"Applications/ApplicationsLib/TestDefinition.h"
#include
"Applications/InSituLib/Adaptor.h"
#include
"BaseLib/ConfigTreeUtil.h"
#include
"BaseLib/DateTools.h"
#include
"BaseLib/FileTools.h"
#include
"BaseLib/
RunTime
.h"
#include
"BaseLib/
PrjProcessing
.h"
#include
"NumLib/NumericsConfig.h"
#include
"ProcessLib/TimeLoop.h"
...
...
@@ -46,13 +45,15 @@ Simulation::Simulation(int argc, char* argv[])
void
Simulation
::
initializeDataStructures
(
std
::
string
&&
project
,
std
::
vector
<
std
::
string
>&&
xml_patch_file_names
,
bool
reference_path_is_set
,
std
::
string
&&
reference_path
,
bool
nonfatal
,
std
::
string
&&
outdir
)
bool
const
reference_path_is_set
,
std
::
string
&&
reference_path
,
bool
const
nonfatal
,
std
::
string
&&
outdir
,
std
::
string
&&
mesh_dir
,
bool
const
write_prj
)
{
std
::
stringstream
prj_stream
;
BaseLib
::
prepareProjectFile
(
prj_stream
,
project
,
xml_patch_file_names
,
write_prj
,
outdir
);
auto
project_config
=
BaseLib
::
makeConfigTree
(
project
,
!
nonfatal
,
"OpenGeoSysProject"
,
xml_patch_file_names
);
BaseLib
::
setProjectDirectory
(
BaseLib
::
extractPath
(
project
));
project
,
!
nonfatal
,
"OpenGeoSysProject"
,
prj_stream
);
if
(
!
reference_path_is_set
)
{
// Ignore the test_definition section.
...
...
@@ -90,7 +91,7 @@ void Simulation::initializeDataStructures(
#endif
project_data
=
std
::
make_unique
<
ProjectData
>
(
project_config
,
BaseLib
::
getProjectDirectory
(),
outdir
);
project_config
,
BaseLib
::
getProjectDirectory
(),
outdir
,
mesh_dir
);
INFO
(
"Initialize processes."
);
for
(
auto
&
p
:
project_data
->
getProcesses
())
...
...
This diff is collapsed.
Click to expand it.
Applications/ApplicationsLib/Simulation.h
+
1
−
1
View file @
4a8e3683
...
...
@@ -28,7 +28,7 @@ public:
void
initializeDataStructures
(
std
::
string
&&
project
,
std
::
vector
<
std
::
string
>&&
xml_patch_file_names
,
bool
reference_path_is_set
,
std
::
string
&&
reference_path
,
bool
nonfatal
,
std
::
string
&&
outdir
);
std
::
string
&&
outdir
,
std
::
string
&&
mesh_dir
,
bool
write_prj
);
bool
executeSimulation
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment