Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Development
openfoam
Commits
6f1a8130
Commit
6f1a8130
authored
15 years ago
by
Andrew Heather
Browse files
Options
Downloads
Patches
Plain Diff
minor formatting changes
parent
11752041
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/foamLog
+6
-10
6 additions, 10 deletions
bin/foamLog
with
6 additions
and
10 deletions
bin/foamLog
+
6
−
10
View file @
6f1a8130
...
@@ -58,9 +58,9 @@ cat <<LABHELP
...
@@ -58,9 +58,9 @@ cat <<LABHELP
The default is to extract for all the 'Solved for' variables the initial
The default is to extract for all the 'Solved for' variables the initial
residual, the final residual and the number of iterations. Additionally, a
residual, the final residual and the number of iterations. Additionally, a
(user editable) database is used to extract data for standard non-solved for
(user editable) database is used to extract data for standard non-solved for
variables like Courant number, execution time.
variables like Courant number,
and
execution time.
$PROGNAME
-l lists all the possible variables without extract them.
$PROGNAME
-l lists all the possible variables without extract
ing
them.
The program will generate and run an awk script which writes a set of files,
The program will generate and run an awk script which writes a set of files,
logs/<var>_<subIter>, for every <var> specified, for every occurrence inside
logs/<var>_<subIter>, for every <var> specified, for every occurrence inside
...
@@ -69,7 +69,7 @@ a time step.
...
@@ -69,7 +69,7 @@ a time step.
For variables that are 'Solved for', the initial residual name will be
For variables that are 'Solved for', the initial residual name will be
<var>, the final residual receive the name <var>FinalRes,
<var>, the final residual receive the name <var>FinalRes,
The files are a simple xy format with the first column Time (default)
The files are
output in
a simple xy format with the first column Time (default)
and the second the extracted values. Option -n creates single column
and the second the extracted values. Option -n creates single column
files with the extracted data only.
files with the extracted data only.
...
@@ -114,7 +114,6 @@ do
...
@@ -114,7 +114,6 @@ do
done
done
myEcho
()
{
myEcho
()
{
if
[
"
$VERBOSE
"
]
if
[
"
$VERBOSE
"
]
then
then
...
@@ -171,6 +170,7 @@ getSolveQueryList() {
...
@@ -171,6 +170,7 @@ getSolveQueryList() {
done
done
}
}
# getAllQueries dbFile logFile
# getAllQueries dbFile logFile
# Gets all queries from database and from logfile
# Gets all queries from database and from logfile
getAllQueries
()
{
getAllQueries
()
{
...
@@ -202,6 +202,7 @@ getAllQueries() {
...
@@ -202,6 +202,7 @@ getAllQueries() {
done
|
sort
-u
done
|
sort
-u
}
}
#-----------------------------
#-----------------------------
# Main
# Main
#-----------------------------
#-----------------------------
...
@@ -314,8 +315,6 @@ myEcho ""
...
@@ -314,8 +315,6 @@ myEcho ""
# Generate Awk program
# Generate Awk program
#-----------------------------
#-----------------------------
#-- header
#-- header
rm
-f
$AWKFILE
;
touch
$AWKFILE
rm
-f
$AWKFILE
;
touch
$AWKFILE
...
@@ -355,9 +354,6 @@ function extract(inLine,columnSel,outVar,
...
@@ -355,9 +354,6 @@ function extract(inLine,columnSel,outVar,
LABEL
LABEL
#-- Generate code for iteration separator (increments 'Iteration')
#-- Generate code for iteration separator (increments 'Iteration')
getQueries
$DBFILE
'Separator'
getQueries
$DBFILE
'Separator'
cat
<<
LABSEP
>>
$AWKFILE
cat
<<
LABSEP
>>
$AWKFILE
...
@@ -418,6 +414,7 @@ cat <<LABSOLVE >> $AWKFILE
...
@@ -418,6 +414,7 @@ cat <<LABSOLVE >> $AWKFILE
LABSOLVE
LABSOLVE
#-- generate code to process queries
#-- generate code to process queries
for
queryName
in
$QUERYNAMES
for
queryName
in
$QUERYNAMES
do
do
...
@@ -438,7 +435,6 @@ do
...
@@ -438,7 +435,6 @@ do
done
done
#-----------------------------
#-----------------------------
# Run awk program on log
# Run awk program on log
#-----------------------------
#-----------------------------
...
...
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