|
[Sponsors] |
|
July 14, 2010, 12:50 |
Problem with refCast in parallel
|
#1 |
New Member
Michael
Join Date: Jul 2010
Posts: 3
Rep Power: 15 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with parallel computation | Jinhwi, Lee | Siemens | 0 | January 20, 2009 02:23 |
problem with parallel system | tahere | FLUENT | 2 | December 27, 2008 18:44 |
star cd 4.06 parallel problem | whitemelon | Siemens | 3 | October 23, 2008 14:42 |
cfx4 parallel sover Problem!! HELP | Richard.A | CFX | 2 | August 3, 2002 03:54 |
Parallel computation problem in Tascflow | dandy | CFX | 3 | April 21, 2002 00:32 |