Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-grid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Core Modules
dune-grid
Commits
737cfa95
Commit
737cfa95
authored
7 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup] Whitespace and an improved comment
parent
b42d9cf9
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
bin/dunecontrol
+12
-11
12 additions, 11 deletions
bin/dunecontrol
with
12 additions
and
11 deletions
bin/dunecontrol
+
12
−
11
View file @
737cfa95
...
...
@@ -649,17 +649,18 @@ run_default_configure () {
done
# we have to export the compiler and compiler flags
# such that they are honored by cmake.
# such that they are honored by CMake, i.e., filter them out
# and put them before the CMake commnd
flags
=
"CXX CC CXXFLAGS CFLAGS CPPFLAGS LDFLAGS F77 FFLAGS FLIBS FC FCFLAGS FCLIBS LIBS"
for
i
in
$flags
;
do
cflags
=
`
echo
"
$PARAMS
"
|
$GREP
$i
=
|
$SED
-e
"s/^
\(
$i
=
\"
[^
\"
]*
\"\)
.*/
\1
/"
-e
"s/.*[
$BLANK
]
\(
$i
=
\"
[^
\"
]*
\"\)
.*/
\1
/"
-e
"s/^
\(
$i
='[^']*'
\)
.*/
\1
/"
-e
"s/.*[
$BLANK
]
\(
$i
='[^']*'
\)
.*/
\1
/"
`
if
test
-n
"
$cflags
"
&&
test
"
$PARAMS
"
!=
"
$cflags
"
;
then
PREPARAMS
=
"
$PREPARAMS
$cflags
"
else
cflags
=
`
echo
"
$PARAMS
"
|
$GREP
$i
=
|
$SED
-e
"s/^
\(
$i
=[^
$BLANK
]*
\)
.*/
\1
/"
-e
"s/.*[
$BLANK
]
\(
$i
=[^
$BLANK
]*
\)
.*/
\1
/"
`
if
test
-n
"
$cflags
"
&&
test
"
$PARAMS
"
!=
"
$cflags
"
;
then
PREPARAMS
=
"
$PREPARAMS
$cflags
"
else
cflags
=
`
echo
"
$PARAMS
"
|
$GREP
$i
=
|
$SED
-e
"s/^
\(
$i
=[^
$BLANK
]*
\)
.*/
\1
/"
-e
"s/.*[
$BLANK
]
\(
$i
=[^
$BLANK
]*
\)
.*/
\1
/"
`
if
test
-n
"
$cflags
"
&&
test
"
$PARAMS
"
!=
"
$cflags
"
;
then
PREPARAMS
=
"
$PREPARAMS
$cflags
"
fi
fi
fi
done
# MPI flags are special. find_package(MPI) does not honor MPICC, MPICXX
...
...
@@ -668,11 +669,11 @@ run_default_configure () {
comp
=
`
echo
"
$PARAMS
"
|
$GREP
MPI
$i
=
|
$SED
-e
"s/^
\(
$i
=
\"
[^
\"
]*
\"\)
.*/
\1
/"
-e
"s/.*[
$BLANK
]
\(
$i
=
\"
[^
\"
]*
\"\)
.*/
\1
/"
-e
"s/^
\(
$i
='[^']*'
\)
.*/
\1
/"
-e
"s/.*[
$BLANK
]
\(
$i
='[^']*'
\)
.*/
\1
/"
`
if
test
-n
"
$comp
"
&&
test
"
$PARAMS
"
!=
"
$comp
"
;
then
CMAKE_FLAGS
=
"-DMPI_
$(
echo
$i
|
$SED
's/^CC$/C/'
)
""_COMPILER:FILEPATH=
`
which
$comp
`
$CMAKE_FLAGS
"
else
comp
=
`
echo
"
$PARAMS
"
|
$GREP
MPI
$i
=
|
$SED
-e
"s/^MPI
$i
=
\(
[^
$BLANK
]*
\)
.*/
\1
/"
-e
"s/.*[
$BLANK
]MPI
$i
=
\(
[^
$BLANK
]*
\)
.*/
\1
/"
`
if
test
-n
"
$comp
"
&&
test
"
$PARAMS
"
!=
"
$comp
"
;
then
CMAKE_FLAGS
=
"-DMPI_
$(
echo
$i
|
$SED
's/^CC$/C/'
)
""_COMPILER:FILEPATH=
`
which
$comp
`
$CMAKE_FLAGS
"
fi
else
comp
=
`
echo
"
$PARAMS
"
|
$GREP
MPI
$i
=
|
$SED
-e
"s/^MPI
$i
=
\(
[^
$BLANK
]*
\)
.*/
\1
/"
-e
"s/.*[
$BLANK
]MPI
$i
=
\(
[^
$BLANK
]*
\)
.*/
\1
/"
`
if
test
-n
"
$comp
"
&&
test
"
$PARAMS
"
!=
"
$comp
"
;
then
CMAKE_FLAGS
=
"-DMPI_
$(
echo
$i
|
$SED
's/^CC$/C/'
)
""_COMPILER:FILEPATH=
`
which
$comp
`
$CMAKE_FLAGS
"
fi
fi
done
# create build directory if requested
...
...
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