View Issue Details

IDProjectCategoryView StatusLast Update
0002083OpenFOAMBugpublic2016-05-07 09:43
ReporterMattijsJ Assigned Tohenry  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformlinuxOSTumbleweedOS Version(please specify)
Product Versiondev 
Fixed in Versiondev 
Summary0002083: caseDicts/setConstraintTypes does not provide value for ACMI
DescriptionACMI bc will call evaluate upon reading if there is no 'value' field. This tries to look up the non-overlap field which might not be constructed yet and you'll get an error message like:

--> FOAM FATAL ERROR:
hanging pointer of type N4Foam12fvPatchFieldIdEE at index 6 (size 9), cannot dereference

This only happens if the non-overlap field is defined
- using a wildcard
- or using a patchGroup which is defined before the "caseDicts/setConstraintTypes" gets included.

I propose to add a 'value $intenralField" to the setConstraintTypes, similar to processor.
TagsNo tags attached.

Activities

MattijsJ

2016-05-06 11:57

reporter  

setConstraintTypes (1,148 bytes)   
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

cyclic
{
    type  cyclic;
}

cyclicAMI
{
    type  cyclicAMI;
}

cyclicACMI
{
    type  cyclicACMI;
    value $internalField;
}

cyclicSlip
{
    type  cyclicSlip;
}

empty
{
    type  empty;
}

nonuniformTransformCyclic
{
    type  nonuniformTransformCyclic;
}

processor
{
    type  processor;
    value $internalField;
}

processorCyclic
{
    type  processorCyclic;
    value $internalField;
}

symmetryPlane
{
    type  symmetryPlane;
}

symmetry
{
    type  symmetry;
}

wedge
{
    type  wedge;
}


// ************************************************************************* //
setConstraintTypes (1,148 bytes)   

MattijsJ

2016-05-06 12:45

reporter   ~0006242

AMI probably needs the same.

henry

2016-05-07 09:43

manager   ~0006244

Resolved by commit 5f95885a1aaadab4d24784eb386621c68741ee23

Issue History

Date Modified Username Field Change
2016-05-06 11:57 MattijsJ New Issue
2016-05-06 11:57 MattijsJ File Added: setConstraintTypes
2016-05-06 12:45 MattijsJ Note Added: 0006242
2016-05-07 09:43 henry Note Added: 0006244
2016-05-07 09:43 henry Status new => resolved
2016-05-07 09:43 henry Fixed in Version => dev
2016-05-07 09:43 henry Resolution open => fixed
2016-05-07 09:43 henry Assigned To => henry