Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

documentation

  • Loading branch information...
commit 5a253905fe4e77f266f777dc83d9f7da7709dc1d 1 parent ca9918b
@benkirk benkirk authored
View
13 include/utils/meshfree_interpolation.h
@@ -52,7 +52,16 @@ class MeshfreeInterpolation
public:
/**
- * "ParallelizationStrategy"
+ * "ParallelizationStrategy" to employ.
+ *
+ * SYNC_SOURCES assumes that the data added on each processor are
+ * independent and relatively small. Calling the \p prepare_for_use()
+ * method with this \p ParallelizationStrategy will copy remote data
+ * from other processors, so all interpolation can be performed
+ * locally.
+ *
+ * Other \p ParallelizationStrategy techniques will be implemented
+ * as needed.
*/
enum ParallelizationStrategy { SYNC_SOURCES = 0,
INVALID_STRATEGY};
@@ -60,7 +69,6 @@ class MeshfreeInterpolation
* Constructor.
*/
MeshfreeInterpolation () :
- _is_prepared (false),
_parallelization_strategy (SYNC_SOURCES)
{}
@@ -148,7 +156,6 @@ class MeshfreeInterpolation
*/
virtual void gather_remote_data ();
- bool _is_prepared;
ParallelizationStrategy _parallelization_strategy;
std::vector<std::string> _names;
std::vector<Point> _src_pts;
View
4 src/utils/meshfree_interpolation.C
@@ -53,7 +53,6 @@ namespace libMesh
void MeshfreeInterpolation::clear ()
{
- _is_prepared = false;
_names.clear();
_src_pts.clear();
_src_vals.clear();
@@ -65,8 +64,6 @@ namespace libMesh
const std::vector<Point> &pts,
const std::vector<Number> &vals)
{
- _is_prepared = false;
-
libmesh_assert_equal_to (field_names.size()*pts.size(), vals.size());
// If we already have field variables, we assume we are appending.
@@ -123,7 +120,6 @@ namespace libMesh
// no preparation required for other strategies
break;
}
- _is_prepared = true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.