Changeset 5187
- Timestamp:
- 08/12/10 11:38:54 (15 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/c/modules/Bamgx/Bamgx.cpp ¶
r5148 r5187 116 116 117 117 // change using hVertices if provided 118 if (bamgmesh_in->hVertices){118 if(bamgopts->hVertices && bamgopts->hVerticesSize[0]==BTh.nbv){ 119 119 if (verbosity>1) printf(" Merging Metric with hVertices...\n"); 120 120 for (i=0;i<BTh.nbv;i++){ 121 if (!isnan(bamg mesh_in->hVertices[i])){122 BTh[i].m=Metric((float)bamg mesh_in->hVertices[i]);121 if (!isnan(bamgopts->hVertices[i])){ 122 BTh[i].m=Metric((float)bamgopts->hVertices[i]); 123 123 } 124 124 } -
TabularUnified issm/trunk/src/c/modules/InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.cpp ¶
r5149 r5187 82 82 //Get current point coordinates 83 83 r.x=x_interp[i]; r.y=y_interp[i]; 84 I2 I=Th. toI2(r);84 I2 I=Th.R2ToI2(r); 85 85 86 86 //Find triangle holding r/I -
TabularUnified issm/trunk/src/c/objects/Bamg/BamgGeom.cpp ¶
r5177 r5187 9 9 this->VerticesSize[0]=0, this->VerticesSize[1]=0; this->Vertices=NULL; 10 10 this->EdgesSize[0]=0, this->EdgesSize[1]=0; this->Edges=NULL; 11 this->hVertices=NULL;12 this->MetricVertices=NULL;13 11 this->TangentAtEdgesSize[0]=0, this->TangentAtEdgesSize[1]=0; this->TangentAtEdges=NULL; 14 12 this->CornersSize[0]=0, this->CornersSize[1]=0; this->Corners=NULL; … … 24 22 BamgGeom::BamgGeom(mxArray* matlab_struct){ 25 23 26 int lines,cols;27 28 24 FetchData(&this->Vertices, &this->VerticesSize[0], &this->VerticesSize[1], mxGetField(matlab_struct,0,"Vertices")); 29 25 FetchData(&this->Edges, &this->EdgesSize[0], &this->EdgesSize[1], mxGetField(matlab_struct,0,"Edges")); 30 FetchData(&this->hVertices,&lines,&cols,mxGetField(matlab_struct,0,"hVertices"));31 this->MetricVertices=NULL;32 26 this->TangentAtEdgesSize[0]=0, this->TangentAtEdgesSize[1]=0; this->TangentAtEdges=NULL; 33 27 FetchData(&this->Corners, &this->CornersSize[0], &this->CornersSize[1], mxGetField(matlab_struct,0,"Corners")); … … 36 30 FetchData(&this->CrackedEdges, &this->CrackedEdgesSize[0], &this->CrackedEdgesSize[1], mxGetField(matlab_struct,0,"CrackedEdges")); 37 31 FetchData(&this->SubDomains, &this->SubDomainsSize[0], &this->SubDomainsSize[1], mxGetField(matlab_struct,0,"SubDomains")); 38 39 /*Some checks*/40 if (this->hVertices && (cols!=1 || lines!=this->VerticesSize[0])){ISSMERROR("the size of 'hVertices' should be [%i %i]",this->VerticesSize[0],1);}41 32 42 33 } … … 48 39 xfree((void**)&this->Vertices); 49 40 xfree((void**)&this->Edges); 50 xfree((void**)&this->hVertices);51 xfree((void**)&this->MetricVertices);52 41 xfree((void**)&this->TangentAtEdges); 53 42 xfree((void**)&this->Corners); -
TabularUnified issm/trunk/src/c/objects/Bamg/BamgGeom.h ¶
r5177 r5187 16 16 int EdgesSize[2]; 17 17 double* Edges; 18 double* hVertices;19 double* MetricVertices;20 18 int TangentAtEdgesSize[2]; 21 19 double* TangentAtEdges; -
TabularUnified issm/trunk/src/c/objects/Bamg/BamgMesh.cpp ¶
r5177 r5187 20 20 this->VerticesOnGeometricEdgeSize[0]=0, this->VerticesOnGeometricEdgeSize[1]=0; this->VerticesOnGeometricEdge=NULL; 21 21 this->EdgesOnGeometricEdgeSize[0]=0, this->EdgesOnGeometricEdgeSize[1]=0; this->EdgesOnGeometricEdge=NULL; 22 23 this->hVertices=NULL;24 22 25 23 this->IssmEdgesSize[0]=0, this->IssmEdgesSize[1]=0; this->IssmEdges=NULL; … … 53 51 FetchData(&this->EdgesOnGeometricEdge, &this->EdgesOnGeometricEdgeSize[0], &this->EdgesOnGeometricEdgeSize[1], mxGetField(matlab_struct,0,"EdgesOnGeometricEdge")); 54 52 55 FetchData(&this->hVertices, &lines, &cols, mxGetField(matlab_struct,0,"hVertices"));56 57 53 this->IssmEdgesSize[0]=0, this->IssmEdgesSize[1]=0; this->IssmEdges=NULL; 58 54 FetchData(&this->IssmSegments, &this->IssmSegmentsSize[0], &this->IssmSegmentsSize[1], mxGetField(matlab_struct,0,"IssmSegments")); … … 61 57 this->NodalConnectivitySize[0]=0, this->NodalConnectivitySize[1]=0; this->NodalConnectivity=NULL; 62 58 this->NodalElementConnectivitySize[0]=0, this->NodalElementConnectivitySize[1]=0; this->NodalElementConnectivity=NULL; 63 64 /*Checks*/65 if (this->hVertices && (cols!=1 || lines!=this->VerticesSize[0])){ISSMERROR("the size of 'hVertices' should be [%i %i]",this->VerticesSize[0],1);}66 59 67 60 } … … 84 77 xfree((void**)&this->VerticesOnGeometricEdge); 85 78 xfree((void**)&this->EdgesOnGeometricEdge); 86 87 xfree((void**)&this->hVertices);88 79 89 80 xfree((void**)&this->IssmEdges); -
TabularUnified issm/trunk/src/c/objects/Bamg/BamgMesh.h ¶
r5177 r5187 38 38 double* CrackedEdges; 39 39 40 double* hVertices;41 42 40 /*Output for ISSM*/ 43 41 int IssmEdgesSize[2]; -
TabularUnified issm/trunk/src/c/objects/Bamg/BamgOpts.cpp ¶
r5177 r5187 9 9 BamgOpts::BamgOpts(){ 10 10 11 this->anisomax=0; 12 this->cutoff=0; 13 this->coeff=0; 14 this->errg=0; 15 this->gradation=0; 16 this->Hessiantype=0; 17 this->MaxCornerAngle=0; 11 18 this->maxnbv=0; 12 this->MaxCornerAngle=0; 19 this->maxsubdiv=0; 20 this->Metrictype=0; 21 this->nbjacobi=0; 22 this->nbsmooth=0; 23 this->omega=0; 24 this->power=0; 25 this->verbose=0; 26 13 27 this->Crack=0; 14 this->Hessiantype=0; 15 this->Metrictype=0; 28 this->geometricalmetric=0; 16 29 this->KeepVertices=0; 17 this->maxsubdiv=0; 18 this->power=0; 19 this->anisomax=0; 20 this->nbsmooth=0; 21 this->nbjacobi=0; 22 this->omega=0; 30 this->splitcorners=0; 31 23 32 this->hmin=0; 24 33 this->hmax=0; 25 this->hminVertices=NULL; 26 this->hmaxVertices=NULL; 27 this->gradation=0; 28 this->cutoff=0; 29 this->splitcorners=0; 30 this->geometricalmetric=0; 31 this->verbose=0; 32 this->err=NULL; 33 this->errg=0; 34 this->coeff=0; 35 this->metric=NULL; 36 this->field=NULL; 37 this->numfields=0; 34 this->hminVertices=NULL; this->hminVerticesSize[0]=this->hminVerticesSize[1]=0; 35 this->hmaxVertices=NULL; this->hmaxVerticesSize[0]=this->hmaxVerticesSize[1]=0; 36 this->hVertices=NULL; this->hVerticesSize[0]=this->hVerticesSize[1]=0; 37 this->metric=NULL; this->metricSize[0]=this->metricSize[1]=0; 38 this->field=NULL; this->fieldSize[0]=this->fieldSize[1]=0; 39 this->err=NULL; this->errSize[0]=this->errSize[1]=0; 38 40 39 41 } … … 43 45 BamgOpts::BamgOpts(mxArray* matlab_struct){ 44 46 45 int lines,cols; 47 FetchData(&this->anisomax,mxGetField(matlab_struct,0,"anisomax")); 48 FetchData(&this->cutoff,mxGetField(matlab_struct,0,"cutoff")); 49 FetchData(&this->coeff,mxGetField(matlab_struct,0,"coeff")); 50 FetchData(&this->errg,mxGetField(matlab_struct,0,"errg")); 51 FetchData(&this->gradation,mxGetField(matlab_struct,0,"gradation")); 52 FetchData(&this->Hessiantype,mxGetField(matlab_struct,0,"Hessiantype")); 53 FetchData(&this->MaxCornerAngle,mxGetField(matlab_struct,0,"MaxCornerAngle")); 54 FetchData(&this->maxnbv,mxGetField(matlab_struct,0,"maxnbv")); 55 FetchData(&this->maxsubdiv,mxGetField(matlab_struct,0,"maxsubdiv")); 56 FetchData(&this->Metrictype,mxGetField(matlab_struct,0,"Metrictype")); 57 FetchData(&this->nbjacobi,mxGetField(matlab_struct,0,"nbjacobi")); 58 FetchData(&this->nbsmooth,mxGetField(matlab_struct,0,"nbsmooth")); 59 FetchData(&this->omega,mxGetField(matlab_struct,0,"omega")); 60 FetchData(&this->power,mxGetField(matlab_struct,0,"power")); 61 FetchData(&this->verbose,mxGetField(matlab_struct,0,"verbose")); 46 62 47 FetchData(&this->maxnbv,mxGetField(matlab_struct,0,"maxnbv"));48 FetchData(&this->MaxCornerAngle,mxGetField(matlab_struct,0,"MaxCornerAngle"));49 63 FetchData(&this->Crack,mxGetField(matlab_struct,0,"Crack")); 50 FetchData(&this->Hessiantype,mxGetField(matlab_struct,0,"Hessiantype")); 51 FetchData(&this->Metrictype,mxGetField(matlab_struct,0,"Metrictype")); 64 FetchData(&this->geometricalmetric,mxGetField(matlab_struct,0,"geometricalmetric")); 52 65 FetchData(&this->KeepVertices,mxGetField(matlab_struct,0,"KeepVertices")); 53 FetchData(&this->maxsubdiv,mxGetField(matlab_struct,0,"maxsubdiv")); 54 FetchData(&this->power,mxGetField(matlab_struct,0,"power")); 55 FetchData(&this->anisomax,mxGetField(matlab_struct,0,"anisomax")); 56 FetchData(&this->nbsmooth,mxGetField(matlab_struct,0,"nbsmooth")); 57 FetchData(&this->nbjacobi,mxGetField(matlab_struct,0,"nbjacobi")); 58 FetchData(&this->omega,mxGetField(matlab_struct,0,"omega")); 66 FetchData(&this->splitcorners,mxGetField(matlab_struct,0,"splitcorners")); 67 59 68 FetchData(&this->hmin,mxGetField(matlab_struct,0,"hmin")); 60 69 FetchData(&this->hmax,mxGetField(matlab_struct,0,"hmax")); 61 FetchData(&this->hminVertices,&lines,&cols,mxGetField(matlab_struct,0,"hminVertices")); 62 FetchData(&this->hmaxVertices,&lines,&cols,mxGetField(matlab_struct,0,"hmaxVertices")); 63 FetchData(&this->gradation,mxGetField(matlab_struct,0,"gradation")); 64 FetchData(&this->cutoff,mxGetField(matlab_struct,0,"cutoff")); 65 FetchData(&this->splitcorners,mxGetField(matlab_struct,0,"splitcorners")); 66 FetchData(&this->geometricalmetric,mxGetField(matlab_struct,0,"geometricalmetric")); 67 FetchData(&this->verbose,mxGetField(matlab_struct,0,"verbose")); 68 FetchData(&this->field,&lines,&this->numfields,mxGetField(matlab_struct,0,"field")); 69 FetchData(&this->err,NULL,&cols,mxGetField(matlab_struct,0,"err")); 70 if (this->numfields!=0 && cols!=this->numfields){ISSMERROR("the size of 'err' should be the same as 'field'");} 71 FetchData(&this->errg,mxGetField(matlab_struct,0,"errg")); 72 FetchData(&this->coeff,mxGetField(matlab_struct,0,"coeff")); 73 FetchData(&this->metric,&lines,&cols,mxGetField(matlab_struct,0,"metric")); 70 FetchData(&this->hminVertices,&this->hminVerticesSize[0],&this->hminVerticesSize[1],mxGetField(matlab_struct,0,"hminVertices")); 71 FetchData(&this->hmaxVertices,&this->hmaxVerticesSize[0],&this->hmaxVerticesSize[1],mxGetField(matlab_struct,0,"hmaxVertices")); 72 FetchData(&this->hVertices,&this->hVerticesSize[0],&this->hVerticesSize[1],mxGetField(matlab_struct,0,"hVertices")); 73 FetchData(&this->metric,&this->metricSize[0],&this->metricSize[1],mxGetField(matlab_struct,0,"metric")); 74 FetchData(&this->field,&this->fieldSize[0],&this->fieldSize[1],mxGetField(matlab_struct,0,"field")); 75 FetchData(&this->err,&this->errSize[0],&this->errSize[1],mxGetField(matlab_struct,0,"err")); 74 76 75 77 /*Additional checks*/ … … 84 86 xfree((void**)&this->hminVertices); 85 87 xfree((void**)&this->hmaxVertices); 86 xfree((void**)&this-> err);88 xfree((void**)&this->hVertices); 87 89 xfree((void**)&this->metric); 88 90 xfree((void**)&this->field); 91 xfree((void**)&this->err); 89 92 90 93 } … … 97 100 int i; 98 101 102 if (this->anisomax<1) ISSMERROR("'anisomax' option should be >=1"); 99 103 if (this->coeff==0) ISSMERROR("'coeff' should be positive"); 104 if (this->errg<0) ISSMERROR("'errg' option should be >0"); 105 if (this->gradation<1) ISSMERROR("'gradation' option should be >=1"); 106 if (this->Hessiantype!=0 && this->Hessiantype!=1) ISSMERROR("'Hessiantype' supported options are 0 and 1"); 107 if (this->maxnbv<3) ISSMERROR("'maxnbv' option should be >3"); 100 108 if (this->maxsubdiv<=1) ISSMERROR("'maxsubdiv' should be >1"); 109 if (this->Metrictype!=0 && this->Metrictype!=1 && this->Metrictype!=2) ISSMERROR("'Metrictype' supported options are 0, 1 and 2"); 110 if (this->nbjacobi<=0) ISSMERROR("'nbjacobi' option should be >0"); 111 if (this->nbsmooth<=0) ISSMERROR("'nbsmooth' option should be >0"); 112 101 113 if (this->Crack!=0 && this->Crack!=1) ISSMERROR("'Crack' supported options are 0 and 1"); 102 if (this->Hessiantype!=0 && this->Hessiantype!=1) ISSMERROR("'Hessiantype' supported options are 0 and 1");103 if (this->Metrictype!=0 && this->Metrictype!=1 && this->Metrictype!=2) ISSMERROR("'Metrictype' supported options are 0, 1 and 2");104 114 if (this->KeepVertices!=0 && this->KeepVertices!=1) ISSMERROR("'KeepVertices' supported options are 0 and 1"); 105 if (this->errg<0) ISSMERROR("'errg' option should be >0");106 if (this->nbjacobi<=0) ISSMERROR("'nbjacobi' option should be >0");107 115 if (this->geometricalmetric!=0 && this->geometricalmetric!=1) ISSMERROR("'geometricalmetric' supported options are 0 and 1"); 108 if (this->nbsmooth<=0) ISSMERROR("'nbsmooth' option should be >0"); 109 if (this->maxnbv<3) ISSMERROR("'maxnbv' option should be >3"); 116 110 117 if (this->hmin<=0) ISSMERROR("'hmin' option should be >0"); 111 118 if (this->hmax<=0 || this->hmax<this->hmin) ISSMERROR("'hmax' option should be between 0 and hmin=%g",this->hmin); 112 if (this->anisomax<1) ISSMERROR("'anisomax' option should be >=1"); 113 if (this->gradation<1) ISSMERROR("'gradation' option should be >=1"); 114 for (i=0;i<this->numfields;i++) {if (this->err[i]<=0) ISSMERROR("'err' option should be >0");}; 119 if (this->hminVertices && this->hminVerticesSize[1]!=1) ISSMERROR("'hminVertices' should be a column"); 120 if (this->hmaxVertices && this->hmaxVerticesSize[1]!=1) ISSMERROR("'hmaxVertices' should be a column"); 121 if (this->hVertices && this->hVerticesSize[1]!=1) ISSMERROR("'hVertices' should be a column"); 122 if (this->metric && (this->metricSize[1]!=1 && this->metricSize[1]!=3)) ISSMERROR("'metric' should have either 1 (iso) or 3 (aniso) columns."); 123 if (this->field){ 124 if (this->errSize[0]!=1 || this->errSize[1]!=this->fieldSize[1]) ISSMERROR("'err' should be of size %i x %i",1,this->fieldSize[1]); 125 for (i=0;i<this->fieldSize[1];i++) {if (this->err[i]<=0) ISSMERROR("'err' option should be >0");}; 126 } 115 127 116 128 } -
TabularUnified issm/trunk/src/c/objects/Bamg/BamgOpts.h ¶
r5177 r5187 14 14 public: 15 15 16 /*Parameters*/ 17 double anisomax; 18 double cutoff; 19 double coeff; 20 double errg; 21 double gradation; 22 int Hessiantype; 23 double MaxCornerAngle; 16 24 int maxnbv; 17 double MaxCornerAngle; 25 double maxsubdiv; 26 int Metrictype; 27 int nbjacobi; 28 int nbsmooth; 29 double omega; 30 double power; 31 int verbose; 32 33 /*Flags*/ 18 34 int Crack; 19 int Hessiantype; 20 int Metrictype; 35 int geometricalmetric; 21 36 int KeepVertices; 22 double maxsubdiv; 23 double power; 24 double anisomax; 25 int nbsmooth; 26 int nbjacobi; 27 double omega; 37 int splitcorners; 38 39 /*Metric related*/ 28 40 double hmin; 29 41 double hmax; 42 int hminVerticesSize[2]; 30 43 double* hminVertices; 44 int hmaxVerticesSize[2]; 31 45 double* hmaxVertices; 32 double gradation; 33 double cutoff; 34 int splitcorners; 35 int geometricalmetric; 36 int verbose; 46 int hVerticesSize[2]; 47 double* hVertices; 48 int metricSize[2]; 49 double* metric; 50 int fieldSize[2]; 51 double* field; 52 int errSize[2]; 37 53 double* err; 38 double errg;39 double coeff;40 double* metric;41 double* field;42 int numfields;43 54 44 55 BamgOpts(); -
TabularUnified issm/trunk/src/c/objects/Bamg/Geometry.cpp ¶
r5180 r5187 180 180 181 181 //hVertices 182 if(bamg geom->hVertices){182 if(bamgopts->hVertices && bamgopts->hVerticesSize[0]==nbv){ 183 183 if(verbose>5) printf(" processing hVertices\n"); 184 184 for (i=0;i< nbv;i++){ 185 if (!isnan(bamg geom->hVertices[i])){186 vertices[i].m=Metric((double)bamg geom->hVertices[i]);185 if (!isnan(bamgopts->hVertices[i])){ 186 vertices[i].m=Metric((double)bamgopts->hVertices[i]); 187 187 } 188 188 } … … 190 190 191 191 //MetricVertices 192 if(bamg geom->MetricVertices){192 if(bamgopts->metric && bamgopts->metric[0]==nbv){ 193 193 if(verbose>5) printf(" processing MetricVertices\n"); 194 194 for (i=0;i< nbv;i++) { 195 vertices[i].m = Metric((double)bamg geom->MetricVertices[i*3+0],(double)bamggeom->MetricVertices[i*3+1],(double)bamggeom->MetricVertices[i*3+2]);195 vertices[i].m = Metric((double)bamgopts->metric[i*3+0],(double)bamgopts->metric[i*3+1],(double)bamgopts->metric[i*3+2]); 196 196 } 197 197 } -
TabularUnified issm/trunk/src/c/objects/Bamg/Mesh.cpp ¶
r5180 r5187 483 483 } 484 484 edges[i].GeometricalEdgeHook=Gh.edges+j; 485 }486 }487 488 //hVertices489 if(bamgmesh->hVertices){490 if(verbose>5) printf(" processing hVertices\n");491 for (i=0;i< nbv;i++){492 if (!isnan(bamgmesh->hVertices[i])){493 vertices[i].m=Metric((double)bamgmesh->hVertices[i]);494 }495 485 } 496 486 } … … 1710 1700 /*Get and process fields*/ 1711 1701 s=bamgopts->field; 1712 nbsol=bamgopts->numfields; 1702 nbsol=bamgopts->fieldSize[1]; 1703 1704 /*Check size*/ 1705 if (bamgopts->fieldSize[0] != nbv) ISSMERROR("'field' should have %i rows",nbv); 1713 1706 1714 1707 //initialization of some variables … … 1912 1905 /*Get and process fields*/ 1913 1906 s=bamgopts->field; 1914 nbsol=bamgopts->numfields; 1907 nbsol=bamgopts->fieldSize[1]; 1908 1909 /*Check size*/ 1910 if (bamgopts->fieldSize[0] != nbv) ISSMERROR("'field' should have %i rows",nbv); 1915 1911 1916 1912 //initialization of some variables -
TabularUnified issm/trunk/src/c/objects/Bamg/Triangle.cpp ¶
r5151 r5187 138 138 /*FUNCTION Triangle::NuEdgeTriangleAdj{{{1*/ 139 139 short Triangle::NuEdgeTriangleAdj(int i) const { 140 / / Number of the adjacent edge in adj tria140 /*Number of the adjacent edge in adj tria (make sure it is between 0 and 2*/ 141 141 return AdjEdgeNumber[i&3]&3; 142 142 }/*}}}*/ -
TabularUnified issm/trunk/src/m/classes/@bamggeom/bamggeom.m ¶
r5093 r5187 15 15 bg.RequiredEdges=[]; 16 16 bg.CrackedEdges=[]; 17 bg.hVertices=[];18 bg.MetricVertices=[];19 17 bg.SubDomains=[]; 20 18 -
TabularUnified issm/trunk/src/m/classes/@bamgmesh/bamgmesh.m ¶
r5093 r5187 24 24 bm.CrackedVertices=[]; 25 25 bm.CrackedEdges=[]; 26 bm.hVertices=[];27 26 28 27 bm=class(bm,'bamgmesh'); -
TabularUnified issm/trunk/src/m/classes/public/bamg.m ¶
r5093 r5187 224 224 end 225 225 226 if exist(options,'hVertices'),227 bamg_geometry.hVertices=getfieldvalue(options,'hVertices');228 if length(bamg_geometry.hVertices)~=nods,229 error(['hVertices option should be of size [' num2str(nods) ',1]']);230 end231 end232 233 226 %process geom 234 227 %bamg_geometry=processgeometry(bamg_geometry,getfieldvalue(options,'tol',NaN),domain(1)); … … 253 246 bamg_mesh.Vertices=[md.x md.y ones(md.numberofgrids,1)]; 254 247 bamg_mesh.Triangles=[md.elements ones(md.numberofelements,1)]; 255 end256 257 if exist(options,'hVertices'),258 bamg_mesh.hVertices=getfieldvalue(options,'hVertices');259 if length(bamg_mesh.hVertices)~=md.numberofgrids,260 error(['hVertices option should be of size [' num2str(md.numberofgrids) ',1]']);261 end262 248 end 263 249 … … 282 268 bamg_options.hminVertices=getfieldvalue(options,'hminVertices',[]); 283 269 bamg_options.hmaxVertices=getfieldvalue(options,'hmaxVertices',[]); 270 bamg_options.hVertices=getfieldvalue(options,'hVertices',[]); 284 271 bamg_options.KeepVertices=getfieldvalue(options,'KeepVertices',1); 285 272 bamg_options.MaxCornerAngle=getfieldvalue(options,'MaxCornerAngle',10); -
TabularUnified issm/trunk/src/mex/Bamg/Bamg.cpp ¶
r5177 r5187 25 25 /*Initialize variables*/ 26 26 bamgopts = new BamgOpts(BAMGOPTIONS); 27 bamggeom_in= new BamgGeom(BAMGGEOM ETRY);28 bamgmesh_in= new BamgMesh(BAMGMESH );27 bamggeom_in= new BamgGeom(BAMGGEOMIN); 28 bamgmesh_in= new BamgMesh(BAMGMESHIN); 29 29 30 30 /*Initialize outputs*/ -
TabularUnified issm/trunk/src/mex/Bamg/Bamg.h ¶
r4236 r5187 17 17 18 18 /* serial input macros: */ 19 #define BAMGMESH 20 #define BAMGGEOM ETRY(mxArray*)prhs[1]21 #define BAMGOPTIONS 19 #define BAMGMESHIN (mxArray*)prhs[0] 20 #define BAMGGEOMIN (mxArray*)prhs[1] 21 #define BAMGOPTIONS (mxArray*)prhs[2] 22 22 23 23 /* serial output macros: */
Note:
See TracChangeset
for help on using the changeset viewer.