View Issue Details

IDProjectCategoryView StatusLast Update
0000997OpenFOAMBugpublic2015-01-01 14:30
Reporteruser734Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Platformlinux OSx86_64OS Version(please specify)
Summary0000997: code freeze with #calc in controlDict
DescriptionThe code freeze without any error message (the solver processes are still running at 100% but no output or writing) when using the line
purgeWrite #calc "$nDumps * $nn";
when it runs well on 2.2.1 .
Steps To ReproduceRun
Crash
Enjoy
TagsNo tags attached.

Activities

user734

2013-09-06 14:21

 

controlDict (1,962 bytes)   
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include        "$FOAM_CASE/include/initialConditions"


application     pimpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         2.376;

deltaT          5e-05;

writeControl    adjustableRunTime;
secondaryWriteControl    timeStep; 
secondaryWriteInterval   1; 
writeInterval   #codeStream 
{ 
    code 
    #{ 
        scalar start = readScalar(dict.lookup("startTime")); 
        scalar end = readScalar(dict.lookup("endTime")); 
        scalar period = $period; 
        label nDumps = $nDumps; 
        os << (period/nDumps);
    #}; 
}; 
 

purgeWrite     #calc "$nDumps * $nn";

writeFormat     ascii;

writePrecision  8;

writeCompression uncompressed;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

adjustTimeStep  yes;

maxCo           $maxCFL;
libs ( 
    "libOpenFOAM.so" 
//    "libgroovyBC.so" 
//    "libgroovyStandardBCs.so" 
//    "libsimpleSwakFunctionObjects.so" 
//    "libsimpleFunctionObjects.so"
//    "libswakTransportTurbFunctionPlugin.so"
    "libsampling.so"
    "libutilityFunctionObjects.so"
    ) ;



// ************************************************************************* //
controlDict (1,962 bytes)   

user734

2013-09-06 14:35

  ~0002470

In appears only in parallel :
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.x-a0bffa788a15
Exec : icoFoam -parallel
Date : Sep 06 2013
Time : 09:33:08
Host : "briaree1"
PID : 19085
Case : /tmp/***/OpenFOAM/OpenFOAM-2.2.x/tutorials/incompressible/icoFoam/cavity
nProcs : 2
Slaves : 1("briaree1.19086")
Pstream initialized with:
    floatTransfer : 0
    nProcsSimpleSum : 0
    commsType : nonBlocking
    polling iterations : 0
sigFpe : Floating point exception trapping - not supported on this platform
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

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

Using #calcEntry at line 28 in file "/tmp/***/OpenFOAM/OpenFOAM-2.2.x/tutorials/incompressible/icoFoam/cavity/processor0/../system/controlDict"
Using #codeStream with "/tmp/****/OpenFOAM/OpenFOAM-2.2.x/tutorials/incompressible/icoFoam/cavity/dynamicCode/platforms/linux64IccDPOpt/lib/libcodeStream_9e58126b72c47977ae2fa25a8773dd114a74ba0b.so"

user4

2013-09-06 14:39

  ~0002471

- are you running with distributed data?
- does it work if you set fileModificationSkew (in etc/controlDict, in the OptimisationSwitches) to 0
- does it work with fileModificationChecking timeStamp instead of timeStampMaster?

user734

2013-09-06 16:44

  ~0002472

Last edited: 2013-09-06 18:47

Hi!
I'm not sure whether I'm working with distributed data or not (waiting for reply from admin).
Changing fileModificationSkew value to 0 changed nothing but timeStamp to timeStampMaster made the code run. I still have to check the results but it looks good.
Thank you for your help !
---
edit : data are distributed

Issue History

Date Modified Username Field Change
2013-09-06 14:21 user734 New Issue
2013-09-06 14:21 user734 File Added: controlDict
2013-09-06 14:35 user734 Note Added: 0002470
2013-09-06 14:39 user4 Note Added: 0002471
2013-09-06 16:44 user734 Note Added: 0002472
2013-09-06 18:47 user734 Note Edited: 0002472
2015-01-01 14:30 henry Status new => closed
2015-01-01 14:30 henry Assigned To => henry
2015-01-01 14:30 henry Resolution open => no change required