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
6418507e
Commit
6418507e
authored
10 years ago
by
Tom Fischer
Committed by
Dmitri Naumov
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
First OGS simulation main program.
parent
e3c4560d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Applications/CLI/CMakeLists.txt
+16
-0
16 additions, 0 deletions
Applications/CLI/CMakeLists.txt
Applications/CLI/ogs.cpp
+61
-0
61 additions, 0 deletions
Applications/CLI/ogs.cpp
Applications/CMakeLists.txt
+5
-0
5 additions, 0 deletions
Applications/CMakeLists.txt
with
82 additions
and
0 deletions
Applications/CLI/CMakeLists.txt
0 → 100644
+
16
−
0
View file @
6418507e
ADD_EXECUTABLE
(
ogs
ogs.cpp
)
TARGET_LINK_LIBRARIES
(
ogs
ApplicationsLib
BaseLib
FileIO
MeshLib
${
Boost_LIBRARIES
}
)
IF
(
OGS_BUILD_GUI
)
TARGET_LINK_LIBRARIES
(
ogs QtDataView
${
VTK_LIBRARIES
}
VtkVis
)
ENDIF
()
This diff is collapsed.
Click to expand it.
Applications/CLI/ogs.cpp
0 → 100644
+
61
−
0
View file @
6418507e
/**
* \date 2014-08-04
* \brief Implementation of OpenGeoSys simulation application
*
* \copyright
* Copyright (c) 2012-2014, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include
<cstdlib>
// ThirdParty/logog
#include
"logog/include/logog.hpp"
// ThirdParty/tclap
#include
"ThirdParty/tclap/CmdLine.h"
// BaseLib
#include
"BaseLib/LogogSimpleFormatter.h"
// FileIO/XmlIO/Qt
#include
"FileIO/XmlIO/Qt/XmlGspInterface.h"
// OGS
#include
"Applications/ApplicationsLib/ProjectData.h"
int
main
(
int
argc
,
char
*
argv
[])
{
// logog
LOGOG_INITIALIZE
();
BaseLib
::
LogogSimpleFormatter
*
fmt
(
new
BaseLib
::
LogogSimpleFormatter
);
logog
::
Cout
*
logog_cout
(
new
logog
::
Cout
);
logog_cout
->
SetFormatter
(
*
fmt
);
// Parse CLI arguments.
TCLAP
::
CmdLine
cmd
(
"OpenGeoSys simulation application"
,
' '
,
"0.1"
);
TCLAP
::
ValueArg
<
std
::
string
>
project_arg
(
"p"
,
// option tag
"project"
,
// long option tag
"file name of the project"
,
// description
true
,
// required
""
,
"string"
);
// type of information
cmd
.
add
(
project_arg
);
cmd
.
parse
(
argc
,
argv
);
ProjectData
project_data
;
FileIO
::
XmlGspInterface
project_reader
(
project_data
);
project_reader
.
readFile
(
project_arg
.
getValue
());
delete
fmt
;
delete
logog_cout
;
LOGOG_SHUTDOWN
();
return
0
;
}
This diff is collapsed.
Click to expand it.
Applications/CMakeLists.txt
+
5
−
0
View file @
6418507e
...
...
@@ -8,3 +8,8 @@ IF(OGS_BUILD_GUI)
ADD_DEFINITIONS
(
-DOGS_BUILD_GUI
)
ADD_SUBDIRECTORY
(
DataExplorer
)
ENDIF
()
# OGS_BUILD_GUI
IF
(
OGS_BUILD_CLI
)
ADD_SUBDIRECTORY
(
CLI
)
ENDIF
()
# OGS_BUILD_CLI
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