Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
392d497d
Commit
392d497d
authored
5 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Time: check for processorsDDD. Fixes
#1679
.
parent
a41584ff
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/db/Time/Time.C
+7
-3
7 additions, 3 deletions
src/OpenFOAM/db/Time/Time.C
with
7 additions
and
3 deletions
src/OpenFOAM/db/Time/Time.C
+
7
−
3
View file @
392d497d
...
...
@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2015-20
19
OpenCFD Ltd.
Copyright (C) 2015-20
20
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -197,7 +197,9 @@ void Foam::Time::setControls()
// Check if time directory exists
// If not increase time precision to see if it is formatted differently.
if
(
!
fileHandler
().
exists
(
timePath
(),
false
))
// Note: do not use raw fileHandler().exists(...) since does not check
// alternative processorsDDD directories naming
if
(
fileHandler
().
filePath
(
timePath
()).
empty
())
{
int
oldPrecision
=
precision_
;
int
requiredPrecision
=
-
1
;
...
...
@@ -221,7 +223,9 @@ void Foam::Time::setControls()
oldTime
=
newTime
;
// Check the existence of the time directory with the new format
found
=
fileHandler
().
exists
(
timePath
(),
false
);
//found = fileHandler().exists(timePath(), false);
const
fileName
dirName
(
fileHandler
().
filePath
(
timePath
()));
found
=
!
dirName
.
empty
();
if
(
found
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment