Changeset 16200
- Timestamp:
- 09/20/13 09:44:53 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/bamg/Mesh.cpp
r16166 r16200 1053 1053 1054 1054 /*Get options*/ 1055 int verbose = bamgopts->verbose;1056 1055 double anisomax = bamgopts->anisomax; 1057 1056 double errg = bamgopts->errg; … … 3312 3311 3313 3312 long NbSwapf =0; 3314 3315 3313 for(i=0;i<nbv;i++) NbSwapf += vertices[i].Optim(0); 3316 3314 }/*}}}*/ -
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r16188 r16200 3306 3306 3307 3307 /*Spawn material*/ 3308 tria->material=NULL;3309 3308 tria->material=(Material*)this->material->copy(); 3310 3309 delete tria->material->inputs; -
issm/trunk-jpl/src/c/classes/gauss/GaussTria.cpp
r15694 r16200 44 44 IssmPDouble *seg_weights = NULL; 45 45 IssmDouble a1,b1,c1,a2,b2,c2; 46 int i,index3;47 46 48 47 /*Get Segment gauss points*/ … … 83 82 84 83 /*Build Triangle Gauss point*/ 85 for(i =0;i<numgauss;i++){84 for(int i=0;i<numgauss;i++){ 86 85 coords1[i]=0.5*(a1+a2) + 0.5*seg_coords[i]*(a2-a1); 87 86 coords2[i]=0.5*(b1+b2) + 0.5*seg_coords[i]*(b2-b1); … … 107 106 IssmPDouble *seg_coords = NULL; 108 107 IssmPDouble *seg_weights = NULL; 109 int i,index3;110 108 111 109 /*Get Segment gauss points*/ … … 120 118 121 119 /*Build Triangle Gauss point*/ 122 for(i =0;i<numgauss;i++){120 for(int i=0;i<numgauss;i++){ 123 121 coords1[i]=0.5*(area_coordinates[0][0]+area_coordinates[1][0]) + 0.5*seg_coords[i]*(area_coordinates[1][0]-area_coordinates[0][0]); 124 122 coords2[i]=0.5*(area_coordinates[0][1]+area_coordinates[1][1]) + 0.5*seg_coords[i]*(area_coordinates[1][1]-area_coordinates[0][1]); -
issm/trunk-jpl/src/c/modules/ConstraintsStatex/ConstraintsStatex.cpp
r16197 r16200 11 11 12 12 /*output: */ 13 int converged = 0; 14 int num_unstable_constraints = 0; 15 int min_mechanical_constraints = 0; 13 int converged = 1; 14 int num_unstable_constraints = 0; 15 int min_mechanical_constraints = 0; 16 int unstable = 0; 17 int sum_num_unstable_constraints = 0; 16 18 int analysis_type; 17 19 … … 23 25 femmodel->parameters->FindParam(&analysis_type,AnalysisTypeEnum); 24 26 25 /*Do we have penalties linked to rifts? In this case, run our special rifts penalty 26 * management routine, otherwise, skip : */ 27 28 /*No constraints management by default!:*/ 29 num_unstable_constraints=0; 30 converged=1; 31 27 /*Rift penalties first*/ 32 28 #ifdef _HAVE_RIFTS_ 33 29 if(RiftIsPresent(femmodel->loads,analysis_type)){ 34 35 30 RiftConstraintsState(&converged,&num_unstable_constraints,femmodel->loads,min_mechanical_constraints,analysis_type); 36 31 } 37 32 #endif 38 33 39 /*FIXME: this function is actually called by Hydrology and damage evolution. Should be renamed*/ 40 #ifdef _HAVE_THERMAL_ 41 if(PengridIsPresent(femmodel->loads,analysis_type)){ 42 ThermalConstraintsState(femmodel->loads,&converged,&num_unstable_constraints,analysis_type); 34 /*Deal with pengrid*/ 35 for(int i=0;i<femmodel->loads->Size();i++){ 36 Load* load=(Load*)femmodel->loads->GetObjectByOffset(i); 37 if(load->InAnalysis(analysis_type)){ 38 if(load->ObjectEnum()==PengridEnum){ 39 Pengrid* pengrid=(Pengrid*)load; 40 pengrid->ConstraintActivate(&unstable); 41 num_unstable_constraints += unstable; 42 } 43 } 43 44 } 44 #endif 45 ISSM_MPI_Reduce(&num_unstable_constraints,&sum_num_unstable_constraints,1,ISSM_MPI_INT,ISSM_MPI_SUM,0,IssmComm::GetComm() ); 46 ISSM_MPI_Bcast(&sum_num_unstable_constraints,1,ISSM_MPI_INT,0,IssmComm::GetComm()); 47 num_unstable_constraints=sum_num_unstable_constraints; 48 49 /*Have we converged? : */ 50 if(num_unstable_constraints) converged=0; 45 51 46 52 /*Assign output pointers: */ 47 *pconverged =converged;48 *pnum_unstable_constraints =num_unstable_constraints;53 *pconverged = converged; 54 *pnum_unstable_constraints = num_unstable_constraints; 49 55 } -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Enthalpy/CreateConstraintsEnthalpy.cpp
r15465 r16200 11 11 12 12 /*Intermediary*/ 13 int i,j;14 13 int count; 15 14 int M,N; -
issm/trunk-jpl/src/c/modules/ModelProcessorx/FreeSurfaceBase/CreateLoadsFreeSurfaceBase.cpp
r15877 r16200 10 10 11 11 /*Intermediaries*/ 12 int element;13 12 int penpair_ids[2]; 14 13 int count=0; -
issm/trunk-jpl/src/c/modules/ModelProcessorx/FreeSurfaceBase/UpdateElementsFreeSurfaceBase.cpp
r15986 r16200 11 11 void UpdateElementsFreeSurfaceBase(Elements* elements, IoModel* iomodel,int analysis_counter,int analysis_type){ 12 12 13 int finiteelement;14 bool dakota_analysis;15 16 13 /*Now, is the model 3d? otherwise, do nothing: */ 17 14 if (iomodel->dim==2)return; 18 15 19 16 /*Finite element type*/ 20 finiteelement = P1Enum;17 int finiteelement = P1Enum; 21 18 22 19 /*Update elements: */ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/FreeSurfaceTop/CreateLoadsFreeSurfaceTop.cpp
r15877 r16200 10 10 11 11 /*Intermediaries*/ 12 int element;13 12 int penpair_ids[2]; 14 13 int count=0; -
issm/trunk-jpl/src/c/modules/ModelProcessorx/FreeSurfaceTop/UpdateElementsFreeSurfaceTop.cpp
r15986 r16200 11 11 void UpdateElementsFreeSurfaceTop(Elements* elements, IoModel* iomodel,int analysis_counter,int analysis_type){ 12 12 13 int finiteelement;14 bool dakota_analysis;15 16 13 /*Now, is the model 3d? otherwise, do nothing: */ 17 14 if (iomodel->dim==2)return; 18 15 19 finiteelement = P1Enum;16 int finiteelement = P1Enum; 20 17 21 18 /*Update elements: */ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/HydrologyShreve/CreateParametersHydrologyShreve.cpp
r15000 r16200 12 12 Parameters *parameters = NULL; 13 13 int hydrology_model; 14 bool isefficientlayer;15 14 16 15 /*Get parameters: */ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/NodesPartitioning.cpp
r15643 r16200 46 46 /*Intermediaries*/ 47 47 int i,i1,i2; 48 int cols;49 48 int e1,e2; 50 49 int pos; -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Stressbalance/CreateLoadsStressbalance.cpp
r16164 r16200 10 10 11 11 /*Intermediary*/ 12 int segment_width;13 int element;14 12 int i; 15 13 int count;
Note:
See TracChangeset
for help on using the changeset viewer.