Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
9c58b626
Commit
9c58b626
authored
Sep 12, 2008
by
mattijs
Browse files
xterm+log option
parent
0ce09433
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/mpirunDebug
View file @
9c58b626
...
...
@@ -76,9 +76,9 @@ echo "run $args" > $HOME/gdbCommands
echo
"where"
>>
$HOME
/gdbCommands
echo
"Constructed gdb initialization file
$HOME
/gdbCommands"
$ECHO
"Choose running method: 1)gdb+xterm 2)gdb 3)log 4)xterm+valgrind:
\c
"
$ECHO
"Choose running method: 1)gdb+xterm 2)gdb 3)log 4)
log+xterm 5)
xterm+valgrind:
\c
"
read
method
if
[
"
$method
"
-ne
1
-a
"
$method
"
-ne
2
-a
"
$method
"
-ne
3
-a
"
$method
"
-ne
4
]
;
then
if
[
"
$method
"
-ne
1
-a
"
$method
"
-ne
2
-a
"
$method
"
-ne
3
-a
"
$method
"
-ne
4
-a
"
$method
"
-ne
5
]
;
then
printUsage
exit
1
fi
...
...
@@ -152,6 +152,9 @@ do
echo
"
$sourceFoam
; cd
$PWD
;
$exec
$args
>&
$procLog
"
>>
$procCmdFile
echo
"
${
node
}
$procCmdFile
"
>>
$HOME
/mpirun.schema
elif
[
"
$method
"
-eq
4
]
;
then
echo
"
$sourceFoam
; cd
$PWD
;
$exec
$args
2>&1 | tee
$procLog
; read dummy"
>>
$procCmdFile
echo
"
${
node
}
xterm -font fixed -title 'processor'
$proc
$geom
-e
$procCmdFile
"
>>
$HOME
/mpirun.schema
elif
[
"
$method
"
-eq
5
]
;
then
echo
"
$sourceFoam
; cd
$PWD
; valgrind
$exec
$args
; read dummy"
>>
$procCmdFile
echo
"
${
node
}
xterm -font fixed -title 'processor'
$proc
$geom
-e
$procCmdFile
"
>>
$HOME
/mpirun.schema
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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