Commit 7d7a3a78 authored by Andrew Heather's avatar Andrew Heather Committed by Andrew Heather
Browse files

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 7e935bd1
......@@ -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