- Timestamp:
- 08/20/12 17:39:30 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage
- Property svn:ignore
-
old new 1 projects 1 2 autom4te.cache 2 3 aclocal.m4
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 12948-13099
- Property svn:ignore
-
issm/branches/trunk-jpl-damage/src/c/modules/MassFluxx/MassFluxx.cpp
r12878 r13101 10 10 #include "../../EnumDefinitions/EnumDefinitions.h" 11 11 12 void MassFluxx( double* pmass_flux, Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads,Materials* materials, Parameters* parameters,bool process_units){12 void MassFluxx(IssmDouble* pmass_flux, Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads,Materials* materials, Parameters* parameters,bool process_units){ 13 13 14 14 int i,j; … … 20 20 21 21 /*output: */ 22 double mass_flux=0;23 double all_mass_flux=0;22 IssmDouble mass_flux=0; 23 IssmDouble all_mass_flux=0; 24 24 25 25 int counter; 26 26 27 27 /*all segments: */ 28 double** array=NULL;28 IssmDouble** array=NULL; 29 29 int M; 30 30 int* mdims_array=NULL; … … 32 32 33 33 /*our segments of interest: */ 34 double* segments=NULL;34 IssmDouble* segments=NULL; 35 35 int num_segments; 36 36 … … 48 48 * When we find one, use the element to compute the mass flux on the segment: */ 49 49 for(i=0;i<num_segments;i++){ 50 element_id= (int)*(segments+5*i+4);50 element_id=reCast<int,IssmDouble>(*(segments+5*i+4)); 51 51 for(j=0;j<elements->Size();j++){ 52 52 element=(Element*)elements->GetObjectByOffset(j); … … 66 66 /*Free ressources:*/ 67 67 for(j=0;j<M;j++){ 68 double* matrix=array[j];69 xDelete< double>(matrix);68 IssmDouble* matrix=array[j]; 69 xDelete<IssmDouble>(matrix); 70 70 } 71 71 xDelete<int>(mdims_array); 72 72 xDelete<int>(ndims_array); 73 xDelete< double*>(array);73 xDelete<IssmDouble*>(array); 74 74 75 75 /*Assign output pointers: */
Note:
See TracChangeset
for help on using the changeset viewer.