View Issue Details

IDProjectCategoryView StatusLast Update
0002988OpenFOAMFeaturepublic2018-06-29 11:40
Reporterfertinaz Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformBlue Gene QOSCNKOS Version(please specify)
Summary0002988: timeVaryingMappedFixedValue cannot read boundaryData
DescriptionI am working on the tutorial case "pitzDailyExptInlet" to check "timeVaryingMappedFixedValue" BC and it fails because of the error:
"Cannot find starting sampling values for current time 1 -- Have sampling values for times 0()"

So I tracked down the issue to:
    bool foundTime = mapperPtr_().findTime
    (
        sampleTimes_,
        startSampleTime_,
        this->db().time().value(),
        lo,
        hi
    );

in function checkTable() in timeVaryingMappedFixedValueFvPatchField.C.

This flag returns false.

As reported above this is a BG/Q cluster. Login nodes have Power 7 CPUs with CentOS which can run this tutorial case successfully. However, compute nodes have A2 processors with CNK which offloads all the I/O operations to the IO nodes. I suspect that
    bool foundTime = mapperPtr_().findTime
requires modification but cannot seem to find where to make those modifications.

Can you point me to the source code?
Steps To Reproducecd $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDailyExptInlet
blockMesh
simpleFoam
TagsNo tags attached.

Activities

will

2018-06-25 16:25

manager   ~0009822

Are you running with a different fileHandler option than the default?

The relevant method for you to investigate (i.e., the function returning false) is Foam::pointToPointPlanarInterpolation::findTime, which can be found at line 361 of the file src/meshTools/triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C.

fertinaz

2018-06-27 20:11

reporter   ~0009837

Hello Will, thanks for your respond.

1. I am using the default fileHandler.

2. I already found the correct function however afterwards I realized that the real problem is in POSIX.C:
        // Read and parse all the entries in the directory
        while ((list = ::readdir(source)) != nullptr)
        {
            // Original OpenFOAM code:
            fileName fName(list->d_name);

On BGQ compute nodes, list->d_name returns 1 character longer than it should be with 0th entry being a non-ascii char. I implemented a workaround for that but you can consider implementing a more flexible solution.

henry

2018-06-27 21:02

manager   ~0009838

Last edited: 2018-06-27 21:12

This sounds like a bug in the BG/Q OS rather than OpenFOAM, have you reported it to IBM?

henry

2018-06-29 11:40

manager   ~0009841

Apparently a bug in the BG/Q OS and has been or should be reported to IBM.

Issue History

Date Modified Username Field Change
2018-06-20 19:44 fertinaz New Issue
2018-06-25 16:25 will Note Added: 0009822
2018-06-27 20:11 fertinaz Note Added: 0009837
2018-06-27 21:02 henry Note Added: 0009838
2018-06-27 21:12 henry Note Edited: 0009838
2018-06-29 11:40 henry Assigned To => henry
2018-06-29 11:40 henry Status new => closed
2018-06-29 11:40 henry Resolution open => no change required
2018-06-29 11:40 henry Note Added: 0009841