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
f57c22bb
Commit
f57c22bb
authored
16 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
set floatTransfer off in code
parent
c26396c0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OpenFOAM/db/IOstreams/Pstreams/Pstream.C
+1
-1
1 addition, 1 deletion
src/OpenFOAM/db/IOstreams/Pstreams/Pstream.C
src/OpenFOAM/matrices/lduMatrix/lduAddressing/lduInterface/processorLduInterfaceTemplates.C
+2
-2
2 additions, 2 deletions
...uAddressing/lduInterface/processorLduInterfaceTemplates.C
with
3 additions
and
3 deletions
src/OpenFOAM/db/IOstreams/Pstreams/Pstream.C
+
1
−
1
View file @
f57c22bb
...
@@ -230,7 +230,7 @@ Foam::List<Foam::Pstream::commsStruct> Foam::Pstream::treeCommunication_(0);
...
@@ -230,7 +230,7 @@ Foam::List<Foam::Pstream::commsStruct> Foam::Pstream::treeCommunication_(0);
// in accuracy
// in accuracy
bool
Foam
::
Pstream
::
floatTransfer
bool
Foam
::
Pstream
::
floatTransfer
(
(
debug
::
optimisationSwitch
(
"floatTransfer"
,
1
)
debug
::
optimisationSwitch
(
"floatTransfer"
,
0
)
);
);
// Number of processors at which the reduce algorithm changes from linear to
// Number of processors at which the reduce algorithm changes from linear to
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/matrices/lduMatrix/lduAddressing/lduInterface/processorLduInterfaceTemplates.C
+
2
−
2
View file @
f57c22bb
...
@@ -129,7 +129,7 @@ void Foam::processorLduInterface::compressedSend
...
@@ -129,7 +129,7 @@ void Foam::processorLduInterface::compressedSend
const
UList
<
Type
>&
f
const
UList
<
Type
>&
f
)
const
)
const
{
{
if
(
sizeof
(
scalar
)
!=
sizeof
(
float
)
&&
f
.
size
()
&&
Pstream
::
floatTransfer
)
if
(
sizeof
(
scalar
)
!=
sizeof
(
float
)
&&
Pstream
::
floatTransfer
&&
f
.
size
()
)
{
{
static
const
label
nCmpts
=
sizeof
(
Type
)
/
sizeof
(
scalar
);
static
const
label
nCmpts
=
sizeof
(
Type
)
/
sizeof
(
scalar
);
label
nm1
=
(
f
.
size
()
-
1
)
*
nCmpts
;
label
nm1
=
(
f
.
size
()
-
1
)
*
nCmpts
;
...
@@ -199,7 +199,7 @@ void Foam::processorLduInterface::compressedReceive
...
@@ -199,7 +199,7 @@ void Foam::processorLduInterface::compressedReceive
UList
<
Type
>&
f
UList
<
Type
>&
f
)
const
)
const
{
{
if
(
sizeof
(
scalar
)
!=
sizeof
(
float
)
&&
f
.
size
()
&&
Pstream
::
floatTransfer
)
if
(
sizeof
(
scalar
)
!=
sizeof
(
float
)
&&
Pstream
::
floatTransfer
&&
f
.
size
()
)
{
{
static
const
label
nCmpts
=
sizeof
(
Type
)
/
sizeof
(
scalar
);
static
const
label
nCmpts
=
sizeof
(
Type
)
/
sizeof
(
scalar
);
label
nm1
=
(
f
.
size
()
-
1
)
*
nCmpts
;
label
nm1
=
(
f
.
size
()
-
1
)
*
nCmpts
;
...
...
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