[cig-commits] r22050 - short/3D/PyLith/trunk/libsrc/pylith/bc
brad at geodynamics.org
brad at geodynamics.org
Sat May 11 15:04:34 PDT 2013
Author: brad
Date: 2013-05-11 15:04:34 -0700 (Sat, 11 May 2013)
New Revision: 22050
Modified:
short/3D/PyLith/trunk/libsrc/pylith/bc/DirichletBoundary.cc
Log:
Fixed bug. Use FACES_FIELD for submeshes.
Modified: short/3D/PyLith/trunk/libsrc/pylith/bc/DirichletBoundary.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/bc/DirichletBoundary.cc 2013-05-11 21:08:40 UTC (rev 22049)
+++ short/3D/PyLith/trunk/libsrc/pylith/bc/DirichletBoundary.cc 2013-05-11 22:04:34 UTC (rev 22050)
@@ -101,13 +101,13 @@
_outputFields = new topology::Fields<topology::Field<topology::SubMesh> >(*_boundaryMesh);
} // if
assert(_outputFields);
- _outputFields->add("buffer (vector)", "buffer_vector", topology::FieldBase::CELLS_FIELD, spaceDim);
+ _outputFields->add("buffer (vector)", "buffer_vector", topology::FieldBase::FACES_FIELD, spaceDim);
topology::Field<topology::SubMesh>& bufferVector = _outputFields->get("buffer (vector)");
bufferVector.vectorFieldType(topology::FieldBase::VECTOR);
bufferVector.scale(lengthScale);
bufferVector.allocate();
- _outputFields->add("buffer (scalar)", "buffer_scalar", topology::FieldBase::CELLS_FIELD, 1);
+ _outputFields->add("buffer (scalar)", "buffer_scalar", topology::FieldBase::FACES_FIELD, 1);
topology::Field<topology::SubMesh>& bufferScalar = _outputFields->get("buffer (scalar)");
bufferScalar.vectorFieldType(topology::FieldBase::SCALAR);
bufferScalar.scale(timeScale);
More information about the CIG-COMMITS
mailing list