Changeset 19716
- Timestamp:
- 11/12/15 21:07:00 (9 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mesh/triangle.js
r19711 r19716 54 54 //Now, build the connectivity tables for this mesh. 55 55 md.mesh.vertexconnectivity=NodeConnectivity(md.mesh.elements,md.mesh.numberofvertices); 56 //md.mesh.elementconnectivity=ElementConnectivity(md.mesh.elements,md.mesh.vertexconnectivity);56 md.mesh.elementconnectivity=ElementConnectivity(md.mesh.elements,md.mesh.vertexconnectivity); 57 57 58 58 } -
issm/trunk-jpl/src/wrappers/ElementConnectivity/ElementConnectivity.h
r14996 r19716 45 45 #endif 46 46 47 #ifdef _HAVE_JAVASCRIPT_MODULES_ 48 /* serial input macros: */ 49 #define ELEMENTS elementsin, nelsin,3 50 #define NODECONNECTIVITY nodeconnectivityin, nodsin, widthin 51 /* serial output macros: */ 52 #define ELEMENTCONNECTIVITY pelementconnectivity,NULL,NULL 53 #undef WRAPPER 54 #define WRAPPER(modulename) extern "C" { int ElementConnectivityModule(double** pelementconnectivity, int* elementsin, int* nodeconnectivityin, int nelsin, int nodsin, int widthin) 55 #endif 56 47 57 /* serial arg counts: */ 48 58 #undef NLHS -
issm/trunk-jpl/src/wrappers/NodeConnectivity/NodeConnectivity.cpp
r19711 r19716 10 10 _printf0_("\n"); 11 11 }/*}}}*/ 12 WRAPPER(NodeConnectivity , double** pconnectivity, int* pnods, int *pwidth, int* elementsin, int nelsin, int nodsin){12 WRAPPER(NodeConnectivity){ 13 13 14 14 /*inputs: */ -
issm/trunk-jpl/src/wrappers/NodeConnectivity/NodeConnectivity.h
r19711 r19716 22 22 /*Header files: */ 23 23 #include "../bindings.h" 24 #ifndef _HAVE_JAVASCRIPT_MODULES_25 24 #include "../../c/main/globals.h" 26 #endif27 25 #include "../../c/toolkits/toolkits.h" 28 26 #include "../../c/modules/modules.h" … … 53 51 /* serial output macros: */ 54 52 #define CONNECTIVITY pconnectivity,pnods,pwidth 53 #undef WRAPPER 54 #define WRAPPER(modulename) extern "C" { int NodeConnectivityModule(double** pconnectivity, int* pnods, int *pwidth, int* elementsin, int nelsin, int nodsin) 55 55 #endif 56 56 -
issm/trunk-jpl/src/wrappers/TriMesh/TriMesh.cpp
r19711 r19716 14 14 _printf_("\n"); 15 15 }/*}}}*/ 16 WRAPPER(TriMesh ,double** pindex, double** px, double** py, int* pnel, int* pnods, double** psegments, double** psegmentmarkers, int* pnsegs, double* domainx, double* domainy, int domainnods, double areain){16 WRAPPER(TriMesh){ 17 17 18 19 18 /*intermediary: */ 20 19 double area; -
issm/trunk-jpl/src/wrappers/TriMesh/TriMesh.h
r19715 r19716 71 71 #define SEGMENTS psegments,pnsegs 72 72 #define SEGMENTMARKERLIST psegmentmarkers,pnsegs 73 #undef WRAPPER 74 #define WRAPPER(modulename) extern "C" { int TriMeshModule(double** pindex, double** px, double** py, int* pnel, int* pnods, double** psegments, double** psegmentmarkers, int* pnsegs, double* domainx, double* domainy, int domainnods, double areain) 73 75 #define _DO_NOT_LOAD_GLOBALS_//we only load globals for TriMeshModule.js, not other modules! 74 76 #endif -
issm/trunk-jpl/src/wrappers/javascript/Makefile.am
r19714 r19716 9 9 bin_SCRIPTS = 10 10 bin_SCRIPTS += ../TriMesh/TriMesh.js \ 11 ../NodeConnectivity/NodeConnectivity.js 11 ../NodeConnectivity/NodeConnectivity.js\ 12 ../ElementConnectivity/ElementConnectivity.js 12 13 13 14 #javascript io{{{ … … 73 74 74 75 IssmModule_SOURCES = ../TriMesh/TriMesh.cpp \ 75 ../NodeConnectivity/NodeConnectivity.cpp 76 IssmModule_CXXFLAGS= -fPIC -D_DO_NOT_LOAD_GLOBALS_ --memory-init-file 0 $(AM_CXXFLAGS) $(CXXFLAGS) $(CXXOPTFLAGS) $(COPTFLAGS) -s EXPORTED_FUNCTIONS="['_TriMeshModule','_NodeConnectivityModule']" -s DISABLE_EXCEPTION_CATCHING=0 76 ../NodeConnectivity/NodeConnectivity.cpp\ 77 ../ElementConnectivity/ElementConnectivity.cpp 78 79 IssmModule_CXXFLAGS= -fPIC -D_DO_NOT_LOAD_GLOBALS_ --memory-init-file 0 $(AM_CXXFLAGS) $(CXXFLAGS) $(CXXOPTFLAGS) $(COPTFLAGS) -s EXPORTED_FUNCTIONS="['_TriMeshModule','_NodeConnectivityModule','_ElementConnectivityModule']" -s DISABLE_EXCEPTION_CATCHING=0 77 80 IssmModule_LDADD = ${deps} $(TRIANGLELIB) 78 81 #}}}
Note:
See TracChangeset
for help on using the changeset viewer.