Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
iwr
amdis
Commits
3a2fe034
Commit
3a2fe034
authored
12 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
command line parser for petsc-parameters
parent
5c682093
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AMDiS/src/AMDiS.cc
+9
-1
9 additions, 1 deletion
AMDiS/src/AMDiS.cc
with
9 additions
and
1 deletion
AMDiS/src/AMDiS.cc
+
9
−
1
View file @
3a2fe034
...
@@ -55,14 +55,22 @@ namespace AMDiS {
...
@@ -55,14 +55,22 @@ namespace AMDiS {
(
"init-file"
,
po
::
value
<
std
::
string
>
(),
"set init file"
)
(
"init-file"
,
po
::
value
<
std
::
string
>
(),
"set init file"
)
(
"rs"
,
po
::
value
<
int
>
(),
"set restart parameter"
)
(
"rs"
,
po
::
value
<
int
>
(),
"set restart parameter"
)
(
"parameters"
,
po
::
value
<
std
::
string
>
(),
"set parameter in init file
\n
syntax:
\"
key1: value1; key2: value2...
\"
"
);
(
"parameters"
,
po
::
value
<
std
::
string
>
(),
"set parameter in init file
\n
syntax:
\"
key1: value1; key2: value2...
\"
"
);
po
::
options_description
hidden
(
"Hidden options"
);
hidden
.
add_options
()
(
"unknown"
,
po
::
value
<
std
::
vector
<
std
::
string
>
>
(),
"unknown options"
);
po
::
options_description
cmdline_options
;
cmdline_options
.
add
(
desc
).
add
(
hidden
);
// first argument is init-filename
// first argument is init-filename
po
::
positional_options_description
p
;
po
::
positional_options_description
p
;
p
.
add
(
"init-file"
,
1
);
p
.
add
(
"init-file"
,
1
);
p
.
add
(
"unknown"
,
-
1
);
// parse comandline
// parse comandline
po
::
variables_map
vm
;
po
::
variables_map
vm
;
po
::
store
(
po
::
command_line_parser
(
argc
,
argv
).
options
(
desc
).
positional
(
p
).
run
(),
vm
);
po
::
store
(
po
::
command_line_parser
(
argc
,
argv
).
options
(
cmdline_options
).
positional
(
p
).
allow_unregistered
(
).
run
(),
vm
);
po
::
notify
(
vm
);
po
::
notify
(
vm
);
// print help message
// print help message
...
...
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