View Issue Details

IDProjectCategoryView StatusLast Update
0001151OpenFOAMBugpublic2014-02-18 09:14
Reporterwyldckat Assigned Touser2 
PrioritylowSeveritytrivialReproducibilityN/A
Status resolvedResolutionfixed 
Summary0001151: Stray lines spotted in "fieldMinMaxTemplates.C"
DescriptionIn reference to the commit "d1a855ac2674afecb290735cde35d25830660834", in the file "src/postProcessing/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C", the following two lines seem to be a bit lost for the "case mdCmpt", in line 167 and 168:

                Pstream::gatherList(minVs);
                Pstream::gatherList(minCs);

The two lines are shown commented out in the "Steps To Reproduce".

Direct link to the lines in question in the online repository: https://github.com/OpenFOAM/OpenFOAM-2.2.x/blob/d1a855ac2674afecb290735cde35d25830660834/src/postProcessing/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C#L167
Steps To Reproduce                List<Type> minVs(Pstream::nProcs());
                List<vector> minCs(Pstream::nProcs());
                label minProcI = findMin(field);
                minVs[procI] = field[minProcI];
                minCs[procI] = field.mesh().C()[minProcI];

                //Pstream::gatherList(minVs);
                //Pstream::gatherList(minCs);

                List<Type> maxVs(Pstream::nProcs());
                List<vector> maxCs(Pstream::nProcs());
                label maxProcI = findMax(field);
                maxVs[procI] = field[maxProcI];
                maxCs[procI] = field.mesh().C()[maxProcI];
Additional InformationSorry, don't have a Linux machine with OpenFOAM handy at the moment, to produce a patch file :(

TagsNo tags attached.

Activities

user2

2014-02-18 09:14

  ~0002839

Updated in version 2.3.x

Issue History

Date Modified Username Field Change
2014-02-06 11:23 wyldckat New Issue
2014-02-18 09:14 user2 Note Added: 0002839
2014-02-18 09:14 user2 Status new => resolved
2014-02-18 09:14 user2 Fixed in Version => 2.3.x
2014-02-18 09:14 user2 Resolution open => fixed
2014-02-18 09:14 user2 Assigned To => user2