DimensionedField: Correct database registration of fields created with new names
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -211,7 +211,7 @@ DimensionedField<Type, GeoMesh>::DimensionedField
|
|||||||
const DimensionedField<Type, GeoMesh>& df
|
const DimensionedField<Type, GeoMesh>& df
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
regIOobject(newName, df, newName == df.name()),
|
regIOobject(newName, df, newName != df.name()),
|
||||||
Field<Type>(df),
|
Field<Type>(df),
|
||||||
mesh_(df.mesh_),
|
mesh_(df.mesh_),
|
||||||
dimensions_(df.dimensions_)
|
dimensions_(df.dimensions_)
|
||||||
|
|||||||
Reference in New Issue
Block a user