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
1faad839
Commit
1faad839
authored
16 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
etc/settings.* set a minimum MPI_BUFFER_SIZE, but retain larger values
parent
50427d77
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
etc/settings.csh
+12
-3
12 additions, 3 deletions
etc/settings.csh
etc/settings.sh
+10
-4
10 additions, 4 deletions
etc/settings.sh
with
22 additions
and
7 deletions
etc/settings.csh
+
12
−
3
View file @
1faad839
...
...
@@ -193,9 +193,17 @@ endsw
_foamAddLib
$FOAM_MPI_LIBBIN
# Set the MPI buffer size (used by all platforms except SGI MPI)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
setenv MPI_BUFFER_SIZE 20000000
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set
minBufferSize
=
20000000
if
(
$?
MPI_BUFFER_SIZE
)
then
if
(
$MPI_BUFFER_SIZE
<
$minBufferSize
)
then
setenv MPI_BUFFER_SIZE
$minBufferSize
endif
else
setenv MPI_BUFFER_SIZE
$minBufferSize
endif
# CGAL library if available
...
...
@@ -217,5 +225,6 @@ endif
unalias
_foamAddPath
unalias
_foamAddLib
unalias
_foamMkDir
unset
minBufferSize
# -----------------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
etc/settings.sh
+
10
−
4
View file @
1faad839
...
...
@@ -223,9 +223,15 @@ esac
_foamAddLib
$FOAM_MPI_LIBBIN
# Set the MPI buffer size (used by all platforms except SGI MPI)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export
MPI_BUFFER_SIZE
=
20000000
# Set the minimum MPI buffer size (used by all platforms except SGI MPI)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
minBufferSize
=
20000000
if
[
"
${
MPI_BUFFER_SIZE
:
=
$minBufferSize
}
"
-lt
$minBufferSize
]
then
MPI_BUFFER_SIZE
=
$minBufferSize
fi
export
MPI_BUFFER_SIZE
# CGAL library if available
...
...
@@ -242,6 +248,6 @@ export MPI_BUFFER_SIZE=20000000
# cleanup environment:
# ~~~~~~~~~~~~~~~~~~~~
unset
_foamAddPath _foamAddLib _foamMkDir
unset
_foamAddPath _foamAddLib _foamMkDir
minBufferSize
# -----------------------------------------------------------------------------
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