Commit c7f08b58 authored by Andrew Heather's avatar Andrew Heather

BUG: DimensionedField - register new field if it does not have the same name...

BUG: DimensionedField - register new field if it does not have the same name as the copy - see #1348
parent 4d6e4b3d
......@@ -299,7 +299,7 @@ Foam::DimensionedField<Type, GeoMesh>::DimensionedField
const DimensionedField<Type, GeoMesh>& df
)
:
regIOobject(newName, df, newName == df.name()),
regIOobject(newName, df, newName != df.name()),
Field<Type>(df),
mesh_(df.mesh_),
dimensions_(df.dimensions_),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment