View Issue Details

IDProjectCategoryView StatusLast Update
0003514OpenFOAMBugpublic2020-06-24 15:42
ReporterShortyAssigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformGNU/LinuxOSUbuntuOS Version16.04
Product Versiondev 
Fixed in Version 
Summary0003514: IOobject changes the given path after calling the write() function
DescriptionHi all,

I found a strange behavior I was not expecting to happen. Creating a new volScalarField object (const) while setting the instance path to an arbitrary folder. This will look-up the object in this folder after the constructor is called; nothing special. However, if we call the write() function of this object, the path of the object changes. I was not expecting that this will happen even though, I do have a constant object.
Steps To Reproducea. untar
b. compile the solver (you might wish to change the name and compilation folder)
c. execute the solver in the case
TagsNo tags attached.

Activities

Shorty

2020-06-24 14:47

reporter  

IOobject.tar.gz (216,015 bytes)

henry

2020-06-24 14:55

manager   ~0011410

This is the design behaviour, the instance is updated when the time changes.

Issue History

Date Modified Username Field Change
2020-06-24 14:47 Shorty New Issue
2020-06-24 14:47 Shorty File Added: IOobject.tar.gz
2020-06-24 14:55 henry Note Added: 0011410
2020-06-24 15:42 henry Assigned To => henry
2020-06-24 15:42 henry Status new => closed
2020-06-24 15:42 henry Resolution open => no change required