[MOAB-dev] r5858 - in MOAB/trunk: doc src src/io src/moab tools tools/mbcoupler
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Thu Nov 8 10:35:46 CST 2012
Author: tautges
Date: 2012-11-08 10:35:46 -0600 (Thu, 08 Nov 2012)
New Revision: 5858
Added:
MOAB/trunk/src/SpectralMeshTool.cpp
MOAB/trunk/src/moab/SpectralMeshTool.hpp
Modified:
MOAB/trunk/doc/MOAB-UG.doc
MOAB/trunk/doc/metadata_info.doc
MOAB/trunk/src/Core.cpp
MOAB/trunk/src/Makefile.am
MOAB/trunk/src/io/ReadNC.cpp
MOAB/trunk/src/io/ReadNC.hpp
MOAB/trunk/tools/mbcoupler/addfield.cpp
MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
MOAB/trunk/tools/size.cpp
Log:
Two primary changes:
- fixing a bug in get_coords that I'd introduced when I enabled this function for non-vertices
(moral: always run valgrind...); and some improvements to mbcoupler_test to help chase down
solution transfer error.
- spectral mesh: introducing new SpectralMeshTool, and conventions for handling spectral meshes;
not certain about this API yet, so comments not welcome, but will solicite them when I'm
able to get back to this.
Passes make check, serial and parallel.
mbcoupler_test: added -meth <method> argument, defaulted to Coupler::CONSTANT; allows input
of coupling method, which was hardwired before depending on tag name. Also commented out
initialization of spectral stuff for now.
addfield: made default field simply the distance from the origin instead of 1/r with clamp.
Also now using moab's get_coords to get element coordinates.
mbsize: added more options, similar to options to mbconvert, that allows read options to be input,
so we can run this in parallel (with parallel reading) too.
doc/MOAB-UG.doc, metadata_info.doc: added info on spectral element conventional tags.
SpectralMeshTool.[c,h]pp, src/Makefile.am: added new SpectralMeshTool class; this is a work in
progress, not certain yet about the interface.
src/Core.cpp: fixed bug in get_coords for elements, would've turned up had I run valgrind originally...
src/io/ReadNC.cpp: some rearrangements of variables vs. arguments, and using the new SpectralMeshTool.
Modified: MOAB/trunk/doc/MOAB-UG.doc
===================================================================
(Binary files differ)
Modified: MOAB/trunk/doc/metadata_info.doc
===================================================================
(Binary files differ)
Modified: MOAB/trunk/src/Core.cpp
===================================================================
--- MOAB/trunk/src/Core.cpp 2012-11-07 15:19:56 UTC (rev 5857)
+++ MOAB/trunk/src/Core.cpp 2012-11-08 16:35:46 UTC (rev 5858)
@@ -1075,7 +1075,7 @@
}
else {
static std::vector<EntityHandle> dum_conn(CN::MAX_NODES_PER_ELEMENT);
- static std::vector<double> dum_pos(CN::MAX_NODES_PER_ELEMENT);
+ static std::vector<double> dum_pos(3*CN::MAX_NODES_PER_ELEMENT);
static const EntityHandle *conn;
static int num_conn;
status = get_connectivity(*iter, conn, num_conn, false, &dum_conn);
Modified: MOAB/trunk/src/Makefile.am
===================================================================
--- MOAB/trunk/src/Makefile.am 2012-11-07 15:19:56 UTC (rev 5857)
+++ MOAB/trunk/src/Makefile.am 2012-11-08 16:35:46 UTC (rev 5858)
@@ -112,6 +112,7 @@
SmoothFace.hpp \
SparseTag.cpp \
SparseTag.hpp \
+ SpectralMeshTool.cpp \
StructuredElementSeq.cpp \
StructuredElementSeq.hpp \
SweptElementData.cpp \
@@ -190,6 +191,7 @@
moab/ScdInterface.hpp \
moab/SetIterator.hpp \
moab/Skinner.hpp \
+ moab/SpectralMeshTool.hpp \
moab/Types.hpp \
moab/UnknownInterface.hpp \
moab/Util.hpp \
Added: MOAB/trunk/src/SpectralMeshTool.cpp
===================================================================
--- MOAB/trunk/src/SpectralMeshTool.cpp (rev 0)
+++ MOAB/trunk/src/SpectralMeshTool.cpp 2012-11-08 16:35:46 UTC (rev 5858)
@@ -0,0 +1,177 @@
+#include "moab/SpectralMeshTool.hpp"
+#include "moab/Interface.hpp"
+#include "Internals.hpp"
More information about the moab-dev
mailing list