View Issue Details

IDProjectCategoryView StatusLast Update
0001010OpenFOAMBugpublic2013-12-16 09:04
Reportergucong Assigned Touser4 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSLinux (Arch Linux)OS Version(please specify)
Summary0001010: reconstructPar only copy the "uniform" folder in the last time directory specified
DescriptionFor example, when execute the following command
    reconstructPar -time 10:20
the "uniform" folder is copied only for time 20. None other time directories in the reconstructed case will have the "uniform" folder.
Steps To Reproducerun reconstructPar on a case with "uniform" folders. (eg. case with adjustable time step)
Additional InformationSee the ending part of "reconstructPar.C". It do not use the index "timeI" in the body.
----------------------------------------------------------
// If there are any "uniform" directories copy them from
// the master processor
forAll(timeDirs, timeI)
{
    fileName uniformDir0 = databases[0].timePath()/"uniform";
    if (isDir(uniformDir0))
    {
        cp(uniformDir0, runTime.timePath());
    }
}
TagsNo tags attached.

Activities

gucong

2013-11-21 23:35

reporter  

copy-uniform.patch (868 bytes)   
--- reconstructPar.C.orig	2013-11-21 17:32:04.943788901 -0600
+++ reconstructPar.C	2013-11-21 17:29:12.303792014 -0600
@@ -670,17 +670,14 @@
                     Info<< "No lagrangian fields" << nl << endl;
                 }
             }
-        }
-    }
 
-    // If there are any "uniform" directories copy them from
-    // the master processor
-    forAll(timeDirs, timeI)
-    {
-        fileName uniformDir0 = databases[0].timePath()/"uniform";
-        if (isDir(uniformDir0))
-        {
-            cp(uniformDir0, runTime.timePath());
+            // If there are any "uniform" directories copy them from
+            // the master processor
+            fileName uniformDir0 = databases[0].timePath()/"uniform";
+            if (isDir(uniformDir0))
+            {
+                cp(uniformDir0, runTime.timePath());
+            }
         }
     }
 
copy-uniform.patch (868 bytes)   

gucong

2013-12-15 21:58

reporter   ~0002689

fixed in bug #1107

Issue History

Date Modified Username Field Change
2013-09-13 05:38 gucong New Issue
2013-11-21 23:35 gucong File Added: copy-uniform.patch
2013-12-15 21:58 gucong Note Added: 0002689
2013-12-16 09:04 user4 Status new => resolved
2013-12-16 09:04 user4 Fixed in Version => 2.2.x
2013-12-16 09:04 user4 Resolution open => fixed
2013-12-16 09:04 user4 Assigned To => user4