View Issue Details

IDProjectCategoryView StatusLast Update
0003414OpenFOAMBugpublic2020-01-21 08:54
Reporterhk318iAssigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformUbuntu 18.04LTSOSOtherOS Version(please specify)
Product Version7 
Fixed in Version7 
Summary0003414: #includeFunc doesn't work in parallel with codeStream
DescriptionHello,

When running case in parallel with a ``functionObject`` where the function is included in ``controlDict`` using ``#includeFunc``, it doesn't work if the function includes ``codeStream``. It just stuck without error as

```
Using #codeStream at line 20 in file "..../pitzDaily/system/streamlines.seedSampleSet"
Using #codeStream with ".../pitzDaily/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcodeStream_da0a034ea863be5417dd3a56093413c219c90f7b.so"
```
I think something happens during loading which is limited to OF-7 and OF-dev only. I tested using OF-5 and OF6 which have no issue at all to run the case.

Steps To ReproduceSimply copy ''simpleFoam/pitzDaily'' and modify ``streamlines`` function to include any codeStream; for example the start point as

```
    start #codeStream
    {

      code
      #{

        os << "(-0.0205 0.001 0.00001)" << endl;
      #};
    };
```

It is a trivial example but sufficient to reproduce the issue.
TagsNo tags attached.

Relationships

has duplicate 0003432 closedhenry code freeze with #calc in file included by #includeFunc in controlDict if run in parallel 

Activities

henry

2019-12-19 16:52

manager   ~0010992

Thanks for the detailed report

Resolved in OpenFOAM-7 by commit 37fa4bc3407472cc4faede31236cd3916f033a6a
Resolved OpenFOAM-dev by commit 2ef926732363fbc676098f16dd847bc832c5dd96

Issue History

Date Modified Username Field Change
2019-12-18 14:57 hk318i New Issue
2019-12-19 16:52 henry Assigned To => henry
2019-12-19 16:52 henry Status new => resolved
2019-12-19 16:52 henry Resolution open => fixed
2019-12-19 16:52 henry Fixed in Version => 7
2019-12-19 16:52 henry Note Added: 0010992
2020-01-21 08:54 henry Relationship added has duplicate 0003432