View Issue Details

IDProjectCategoryView StatusLast Update
0001345OpenFOAMBugpublic2014-07-22 17:05
Reporteruser962Assigned Towill  
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Platformx86_64OSCentOSOS Version6.4
Summary0001345: Using function object systemCall results in crash for some cases
DescriptionWe are experimenting using the function object systemCall to transfer data from a local file system back to our global file system. When we use systemCall with tutorials/incompressible/pimpleDyMFoam/propeller this works as expected, however when trialing this with tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation it fails with:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.3.0-f5222ca19ce6
Exec : chtMultiRegionSimpleFoam -parallel
Date : Jul 09 2014
Time : 13:42:59
Host : "nid00248"
PID : 3355
Case : /scratch/director100/pryan/of/multiRegionHeaterRadiation
nProcs : 4
Slaves :
3
(
"nid00248.3356"
"nid00248.3357"
"nid00248.3358"
)

Pstream initialized with:
    floatTransfer : 0
    nProcsSimpleSum : 0
    commsType : nonBlocking
    polling iterations : 0
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

<snip>

[0]
[0]
[0] --> FOAM FATAL ERROR:
[0]
    request for objectRegistry region0 from objectRegistry multiRegionHeaterRadiationprocessor0 failed
    available objects of type objectRegistry are

5
(
bottomAir
rightSolid
heater
topAir
leftSolid
)

<snip>
Steps To ReproduceRun the example from tutorials/heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation and add the following to system/controlDict:

// ************************************************************************* //
functions
{
    sysCall
    {
        type systemCall;
        functionObjectLibs ( "libsystemCall.so" );

        writeCalls 1("echo DEBUG writeCalls");
        outputControl outputTime;
    }
}

// ************************************************************************* //
Additional InformationWe get this issue on two cluster, a CentOS 6.4 x86_64 cluster, as well as a Cray XC30.
TagsNo tags attached.

Activities

will

2014-07-22 17:03

manager   ~0003173

In a multi-region case, you need to put the "region" keyword into the function object dictionary. Eg:

functions
{
    sysCall
    {
        type systemCall;
        functionObjectLibs ( "libsystemCall.so" );

        region bottomAir; // or "rightSolid", "heater", etc ...

        writeCalls 1("echo DEBUG writeCalls");
        outputControl outputTime;
    }
}

Issue History

Date Modified Username Field Change
2014-07-10 00:35 user962 New Issue
2014-07-22 17:03 will Note Added: 0003173
2014-07-22 17:03 will Status new => resolved
2014-07-22 17:03 will Resolution open => no change required
2014-07-22 17:03 will Assigned To => will