View Issue Details

IDProjectCategoryView StatusLast Update
0000854OpenFOAMBugpublic2013-05-29 11:01
Reporterjtriesch Assigned Touser2 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version12.04
Summary0000854: fieldAverage crashes run when restarting
DescriptionHi, since recently I experience that the fieldAverage functionObject crashes runs when restarting the case with a different endTime (using startTime=startFrom=latestTime). A segmentation fault occurs after "fieldAverage: restarting averaging for fields:". Has been working fine before.
Steps To ReproduceUsing the tutorial icoFoam cavity case I can reproduce the problem. Modify controlDict so that startFrom/startTime = latestTime and adding the functionObject at the end:

functions
{
    fieldAverage1
    {
        type fieldAverage;
        functionObjectLibs ( "libfieldFunctionObjects.so" );
        outputControl outputTime;
        resetOnOutput off;

        fields
        (
            p
            {
                mean on;
                prime2Mean off;
                base time;
            }
        );
    }
}

Running the case initially with an endTime=0.5 and a second time with endTime=1.5 I get the attached report.
TagsNo tags attached.

Activities

jtriesch

2013-05-18 08:31

reporter  

icoFoam.log (3,117 bytes)

user507

2013-05-18 09:29

  ~0002216

I can confirm this behaviour in the latest 2.2.x from Github, and can add that this is only a problem when "resetOnRestart" is off/false (which is the default behaviour AFAIK). If "resetOnRestart" is on/true, there is no crash.

user2

2013-05-29 11:00

  ~0002253

Thanks for the report - fixed by commit ad85969

Issue History

Date Modified Username Field Change
2013-05-18 08:31 jtriesch New Issue
2013-05-18 08:31 jtriesch File Added: icoFoam.log
2013-05-18 09:29 user507 Note Added: 0002216
2013-05-29 11:00 user2 Note Added: 0002253
2013-05-29 11:00 user2 Status new => resolved
2013-05-29 11:00 user2 Fixed in Version => 2.2.x
2013-05-29 11:00 user2 Resolution open => fixed
2013-05-29 11:00 user2 Assigned To => user2