Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
a0fe0497
Commit
a0fe0497
authored
Jan 24, 2019
by
Mark OLESEN
Browse files
STYLE: remove unused code from tutorials/Alltest
parent
1910ebc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tutorials/Alltest
View file @
a0fe0497
...
...
@@ -283,38 +283,11 @@ then
fi
[
-f
Allrun
]
||
cp
-f
"
${
FOAM_TUTORIALS
:?
}
/Allrun"
.
./Allrun
-test
echo
"Starting Allrun -test"
1>&2
echo
"
$PWD
"
1>&2
echo
1>&2
# The rest here doesn't seem to be used
sed
-e
:a
-e
'/\\$/N; s/\\\n//; ta'
Allrun
>
temp
APPLICATIONS
=
\
$(
grep
"applications="
temp |
sed
's/applications=\"\([A-Za-z \t]*\)\"/\1/g'
)
rm
$SCHEMES_FILE
>
/dev/null 2>&1
for
APP
in
$APPLICATIONS
do
echo
$APP
>>
$SCHEMES_FILE
echo
"
$APP
: "
|
tr
-d
"
\n
"
>>
$SOLVERS_FILE
for
ST
in
$FV_SCHEMES
do
rm
$SCHEMES_TEMP
$SOLVERS_TEMP
>
/dev/null 2>&1
echo
"
${
ST
}
"
>>
$SCHEMES_FILE
for
LOG
in
$(
find
${
APP
}
-name
"log.
${
APP
}
"
-type
f
)
do
for
S
in
$(
grep
${
ST
}
${
LOG
}
|
cut
-d
" "
-f4
)
do
echo
"
${
S
}
"
>>
$SCHEMES_TEMP
done
echo
$(
grep
solver
${
LOG
}
|
cut
-d
" "
-f4
)
>>
$SOLVERS_TEMP
done
if
[
-f
$SCHEMES_TEMP
]
then
cat
$SCHEMES_TEMP
|
sort
-u
>>
$SCHEMES_FILE
fi
done
cat
$SOLVERS_TEMP
|
tr
" "
"
\n
"
|
sort
-u
|
tr
"
\n
"
" "
>>
$SOLVERS_FILE
echo
""
>>
$SOLVERS_FILE
done
exec
./Allrun
-test
#------------------------------------------------------------------------------
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment