Commit a1b14882 authored by Andrew Heather's avatar Andrew Heather Committed by Mark Olesen

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 65d6551f
......@@ -301,7 +301,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