CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Problem with refCast in parallel (http://www.cfd-online.com/Forums/openfoam-programming-development/78171-problem-refcast-parallel.html)

Mick July 14, 2010 12:50

Problem with refCast in parallel
 
Hi all,

I am having a problem with a bit of code in parallel. When I run it serially, there are no warnings but when I run it in parallel I get warnings. It doesn't stop my case from running, but it creates massive log files when I'm running across a few processors. If anybody has any idea as to the source of this warning and how to rectify it I'd appreciate it.

Please find below my piece of code and then a piece of the log file showing the warnings.

Code:
Info<< "Time: " << runTime.timeName()
<< "\nI am in the updateTractions file" << endl;





tractionDisplacementIncrementFvPatchVectorField& loadingPatchDU3 =
refCast<tractionDisplacementIncrementFvPatchVector Field>
(
DU.boundaryField()[loadingPatchID3]
);
tractionDisplacementIncrementFvPatchVectorField& loadingPatchDU2 =
refCast<tractionDisplacementIncrementFvPatchVector Field>
(
DU.boundaryField()[loadingPatchID2]
);

Info<< "loadingPatchDU3(a.k.a. traction3).DTraction Before= " << loadingPatchDU3.DTraction() << endl;
Info<< "loadingPatchDU2(a.k.a. traction2).DTraction Before= " << loadingPatchDU2.DTraction() << endl;



Snippet of log file:

I am in the updateTractions file
[3] --> FOAM Warning :
[3] From function max(const UList<Type>&)
[3] in file /gpfs/mech/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FieldFunctions.C at line 322
[3] empty field, returning zero
[2] --> FOAM Warning :
[2] From function max(const UList<Type>&)
[3] --> FOAM Warning :
[3] From function max(const UList<Type>&)
[3] in file /gpfs/mech/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FieldFunctions.C at line 322
[3] empty field, returning zero
[4] --> FOAM Warning :
[5] --> FOAM Warning :
[5] From function max(const UList<Type>&)
[5] in file /gpfs/mech/OpenFOAM/OpenFOAM-1.4.1-dev/src/OpenFOAM/lnInclude/FieldFunctions.C at line 322
[5] empty field, returning zero
loadingPatchDU3(a.k.a. traction3).DTraction Before= 149{(0 0 1000)}
loadingPatchDU2(a.k.a. traction2).DTraction Before= 94{(0 1000 0)}


Thanks in advance,
Michael


All times are GMT -4. The time now is 23:07.