Changeset 23959
- Timestamp:
- 05/29/19 21:44:21 (6 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/analyses/BalancethicknessAnalysis.cpp ¶
r23585 r23959 44 44 45 45 /* Add load */ 46 loads->AddObject(new Numericalflux(i+1,i,i,iomodel ,BalancethicknessAnalysisEnum));46 loads->AddObject(new Numericalflux(i+1,i,i,iomodel)); 47 47 } 48 48 -
TabularUnified issm/trunk-jpl/src/c/analyses/FreeSurfaceBaseAnalysis.cpp ¶
r23795 r23959 37 37 38 38 /*Create Load*/ 39 loads->AddObject(new Penpair(count+1, &penpair_ids[0] , FreeSurfaceBaseAnalysisEnum));39 loads->AddObject(new Penpair(count+1, &penpair_ids[0])); 40 40 count++; 41 41 } -
TabularUnified issm/trunk-jpl/src/c/analyses/FreeSurfaceTopAnalysis.cpp ¶
r23585 r23959 37 37 38 38 /*Create Load*/ 39 loads->AddObject(new Penpair( count+1, &penpair_ids[0] , FreeSurfaceTopAnalysisEnum));39 loads->AddObject(new Penpair( count+1, &penpair_ids[0])); 40 40 count++; 41 41 } -
TabularUnified issm/trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp ¶
r23661 r23959 128 128 /*keep only this partition's nodes:*/ 129 129 if(iomodel->my_vertices[i]){ 130 loads->AddObject(new Moulin(i+1,i,iomodel ,HydrologyDCEfficientAnalysisEnum));130 loads->AddObject(new Moulin(i+1,i,iomodel)); 131 131 } 132 132 } 133 133 else if(reCast<int>(iomodel->Data("md.mesh.vertexonbase")[i])){ 134 134 if(iomodel->my_vertices[i]){ 135 loads->AddObject(new Moulin(i+1,i,iomodel ,HydrologyDCEfficientAnalysisEnum));135 loads->AddObject(new Moulin(i+1,i,iomodel)); 136 136 } 137 137 } -
TabularUnified issm/trunk-jpl/src/c/analyses/HydrologyDCInefficientAnalysis.cpp ¶
r23668 r23959 155 155 /*keep only this partition's nodes:*/ 156 156 if(iomodel->my_vertices[i]){ 157 loads->AddObject(new Pengrid(i+1,i,iomodel ,HydrologyDCInefficientAnalysisEnum));158 loads->AddObject(new Moulin(i+1,i,iomodel ,HydrologyDCInefficientAnalysisEnum));157 loads->AddObject(new Pengrid(i+1,i,iomodel)); 158 loads->AddObject(new Moulin(i+1,i,iomodel)); 159 159 } 160 160 } 161 161 else if(reCast<int>(iomodel->Data("md.mesh.vertexonbase")[i])){ 162 162 if(iomodel->my_vertices[i]){ 163 loads->AddObject(new Pengrid(i+1,i,iomodel ,HydrologyDCInefficientAnalysisEnum));164 loads->AddObject(new Moulin(i+1,i,iomodel ,HydrologyDCInefficientAnalysisEnum));163 loads->AddObject(new Pengrid(i+1,i,iomodel)); 164 loads->AddObject(new Moulin(i+1,i,iomodel)); 165 165 } 166 166 } -
TabularUnified issm/trunk-jpl/src/c/analyses/HydrologyShaktiAnalysis.cpp ¶
r23941 r23959 38 38 /*keep only this partition's nodes:*/ 39 39 if(iomodel->my_vertices[i]){ 40 loads->AddObject(new Moulin(i+1,i,iomodel ,HydrologyShaktiAnalysisEnum));40 loads->AddObject(new Moulin(i+1,i,iomodel)); 41 41 } 42 42 } 43 43 else if(reCast<int>(iomodel->Data("md.mesh.vertexonbase")[i])){ 44 44 if(iomodel->my_vertices[i]){ 45 loads->AddObject(new Moulin(i+1,i,iomodel ,HydrologyShaktiAnalysisEnum));45 loads->AddObject(new Moulin(i+1,i,iomodel)); 46 46 } 47 47 } … … 58 58 for(int i=0;i<M;i++){ 59 59 if(iomodel->my_elements[segments[i*3+2]-1]){ 60 loads->AddObject(new Neumannflux(i+1,i,iomodel,segments ,HydrologyShaktiAnalysisEnum));60 loads->AddObject(new Neumannflux(i+1,i,iomodel,segments)); 61 61 } 62 62 } -
TabularUnified issm/trunk-jpl/src/c/analyses/MasstransportAnalysis.cpp ¶
r23914 r23959 51 51 52 52 /* Add load */ 53 loads->AddObject(new Numericalflux(i+1,i,i,iomodel ,MasstransportAnalysisEnum));53 loads->AddObject(new Numericalflux(i+1,i,i,iomodel)); 54 54 } 55 55 … … 81 81 82 82 /*Create Load*/ 83 loads->AddObject(new Penpair(count+1,&penpair_ids[0] ,MasstransportAnalysisEnum));83 loads->AddObject(new Penpair(count+1,&penpair_ids[0])); 84 84 count++; 85 85 } -
TabularUnified issm/trunk-jpl/src/c/analyses/MeltingAnalysis.cpp ¶
r23644 r23959 21 21 if(iomodel->my_vertices[i]){ 22 22 if (reCast<int>(iomodel->Data("md.mesh.vertexonbase")[i])){ 23 loads->AddObject(new Pengrid(i+1,i,iomodel ,MeltingAnalysisEnum));23 loads->AddObject(new Pengrid(i+1,i,iomodel)); 24 24 } 25 25 } -
TabularUnified issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp ¶
r23907 r23959 474 474 475 475 /*Create Load*/ 476 loads->AddObject(new Penpair(count+1,&penpair_ids[0] ,StressbalanceAnalysisEnum));476 loads->AddObject(new Penpair(count+1,&penpair_ids[0])); 477 477 count++; 478 478 } … … 488 488 for(i=0;i<numriftsegments;i++){ 489 489 if(iomodel->my_elements[reCast<int,IssmDouble>(*(riftinfo+RIFTINFOSIZE*i+2))-1]){ 490 loads->AddObject(new Riftfront(count+1,i,iomodel ,StressbalanceAnalysisEnum));490 loads->AddObject(new Riftfront(count+1,i,iomodel)); 491 491 count++; 492 492 } -
TabularUnified issm/trunk-jpl/src/c/analyses/ThermalAnalysis.cpp ¶
r23645 r23959 84 84 if(iomodel->my_vertices[i]){ 85 85 if (xIsNan<IssmDouble>(iomodel->Data("md.thermal.spctemperature")[i])){ //No penalty applied on spc nodes! 86 loads->AddObject(new Pengrid(i+1,i,iomodel ,ThermalAnalysisEnum));86 loads->AddObject(new Pengrid(i+1,i,iomodel)); 87 87 } 88 88 } -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Friction.h ¶
r23897 r23959 14 14 15 15 public: 16 int analysis_type;17 18 16 Element* element; 19 17 int dim; -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Moulin.cpp ¶
r23644 r23959 28 28 } 29 29 /*}}}*/ 30 Moulin::Moulin(int id, int index, IoModel* iomodel , int in_analysis_type){ //i is the element index/*{{{*/30 Moulin::Moulin(int id, int index, IoModel* iomodel){ /*{{{*/ 31 31 32 32 int pengrid_node_id; … … 40 40 /*id: */ 41 41 this->id=id; 42 this->analysis_type=in_analysis_type;43 42 44 43 /*hooks: */ … … 72 71 /*copy fields: */ 73 72 pengrid->id=this->id; 74 pengrid->analysis_type=this->analysis_type;75 73 76 74 /*point parameters: */ … … 92 90 _printf_("Moulin:\n"); 93 91 _printf_(" id: " << id << "\n"); 94 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");95 92 hnode->DeepEcho(); 96 93 helement->DeepEcho(); … … 112 109 MARSHALLING_ENUM(MoulinEnum); 113 110 MARSHALLING(id); 114 MARSHALLING(analysis_type);115 111 116 112 if(marshall_direction==MARSHALLING_BACKWARD){ -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Moulin.h ¶
r23644 r23959 24 24 25 25 int id; 26 int analysis_type;27 26 28 27 /*Hooks*/ … … 40 39 /*Moulin constructors, destructors {{{*/ 41 40 Moulin(); 42 Moulin(int index, int id, IoModel* iomodel ,int analysis_type);41 Moulin(int index, int id, IoModel* iomodel); 43 42 ~Moulin(); 44 43 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Neumannflux.cpp ¶
r23612 r23959 29 29 } 30 30 /*}}}*/ 31 Neumannflux::Neumannflux(int neumannflux_id,int i,IoModel* iomodel,int* segments ,int in_analysis_type){/*{{{*/31 Neumannflux::Neumannflux(int neumannflux_id,int i,IoModel* iomodel,int* segments){/*{{{*/ 32 32 33 33 /*Some sanity checks*/ … … 52 52 /*Ok, we have everything to build the object: */ 53 53 this->id=neumannflux_id; 54 this->analysis_type=in_analysis_type;55 54 56 55 /*Hooks: */ … … 82 81 /*copy fields: */ 83 82 neumannflux->id=this->id; 84 neumannflux->analysis_type=this->analysis_type;85 83 86 84 /*point parameters: */ … … 104 102 _printf_("Neumannflux:\n"); 105 103 _printf_(" id: " << id << "\n"); 106 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");107 104 hnodes->DeepEcho(); 108 105 hvertices->DeepEcho(); … … 118 115 _printf_("Neumannflux:\n"); 119 116 _printf_(" id: " << id << "\n"); 120 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");121 117 hnodes->Echo(); 122 118 hvertices->Echo(); … … 136 132 MARSHALLING_ENUM(NeumannfluxEnum); 137 133 MARSHALLING(id); 138 MARSHALLING(analysis_type);139 134 140 135 if(marshall_direction==MARSHALLING_BACKWARD){ -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Neumannflux.h ¶
r23588 r23959 20 20 public: 21 21 int id; 22 int analysis_type;23 22 24 23 /*Hooks*/ … … 35 34 /*Neumannflux constructors,destructors {{{*/ 36 35 Neumannflux(); 37 Neumannflux(int numericalflux_id,int i,IoModel* iomodel,int* segments ,int analysis_type);36 Neumannflux(int numericalflux_id,int i,IoModel* iomodel,int* segments); 38 37 ~Neumannflux(); 39 38 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Numericalflux.cpp ¶
r23612 r23959 30 30 } 31 31 /*}}}*/ 32 Numericalflux::Numericalflux(int numericalflux_id,int i,int index,IoModel* iomodel , int in_analysis_type){/*{{{*/32 Numericalflux::Numericalflux(int numericalflux_id,int i,int index,IoModel* iomodel){/*{{{*/ 33 33 34 34 /* Intermediary */ … … 108 108 /*Ok, we have everything to build the object: */ 109 109 this->id=numericalflux_id; 110 this->analysis_type=in_analysis_type;111 110 this->flux_type = numericalflux_type; 112 111 … … 139 138 /*copy fields: */ 140 139 numericalflux->id=this->id; 141 numericalflux->analysis_type=this->analysis_type;142 140 numericalflux->flux_type=this->flux_type; 143 141 … … 162 160 _printf_("Numericalflux:\n"); 163 161 _printf_(" id: " << id << "\n"); 164 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");165 162 _printf_(" flux_type: " << this->flux_type<< "\n"); 166 163 hnodes->DeepEcho(); … … 177 174 _printf_("Numericalflux:\n"); 178 175 _printf_(" id: " << id << "\n"); 179 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");180 176 _printf_(" flux_type: " << this->flux_type<< "\n"); 181 177 hnodes->Echo(); … … 196 192 MARSHALLING_ENUM(NumericalfluxEnum); 197 193 MARSHALLING(id); 198 MARSHALLING(analysis_type);199 194 MARSHALLING(flux_type); 200 195 -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Numericalflux.h ¶
r23588 r23959 20 20 public: 21 21 int id; 22 int analysis_type;23 22 int flux_type; 24 23 … … 36 35 /*Numericalflux constructors,destructors {{{*/ 37 36 Numericalflux(); 38 Numericalflux(int numericalflux_id,int i,int index,IoModel* iomodel ,int analysis_type);37 Numericalflux(int numericalflux_id,int i,int index,IoModel* iomodel); 39 38 ~Numericalflux(); 40 39 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Pengrid.cpp ¶
r23644 r23959 33 33 } 34 34 /*}}}*/ 35 Pengrid::Pengrid(int id, int index, IoModel* iomodel , int in_analysis_type){ //i is the element index/*{{{*/35 Pengrid::Pengrid(int id, int index, IoModel* iomodel){/*{{{*/ 36 36 37 37 int pengrid_node_id; … … 45 45 /*id: */ 46 46 this->id=id; 47 this->analysis_type=in_analysis_type;48 47 49 48 /*hooks: */ … … 82 81 /*copy fields: */ 83 82 pengrid->id=this->id; 84 pengrid->analysis_type=this->analysis_type;85 83 86 84 /*point parameters: */ … … 107 105 _printf_("Pengrid:\n"); 108 106 _printf_(" id: " << id << "\n"); 109 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");110 107 hnode->DeepEcho(); 111 108 helement->DeepEcho(); … … 129 126 MARSHALLING_ENUM(PengridEnum); 130 127 MARSHALLING(id); 131 MARSHALLING(analysis_type);132 128 133 129 if(marshall_direction==MARSHALLING_BACKWARD){ -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Pengrid.h ¶
r23644 r23959 23 23 private: 24 24 25 int id; 26 int analysis_type; 25 int id; 27 26 28 27 /*Hooks*/ … … 44 43 /*Pengrid constructors, destructors {{{*/ 45 44 Pengrid(); 46 Pengrid(int id, int index, IoModel* iomodel ,int analysis_type);45 Pengrid(int id, int index, IoModel* iomodel); 47 46 ~Pengrid(); 48 47 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Penpair.cpp ¶
r23612 r23959 27 27 } 28 28 /*}}}*/ 29 Penpair::Penpair(int penpair_id, int* penpair_node_ids ,int in_analysis_type){/*{{{*/29 Penpair::Penpair(int penpair_id, int* penpair_node_ids){/*{{{*/ 30 30 31 31 this->id=penpair_id; 32 this->analysis_type=in_analysis_type;33 32 this->hnodes=new Hook(penpair_node_ids,2); 34 33 this->parameters=NULL; … … 53 52 /*copy fields: */ 54 53 penpair->id=this->id; 55 penpair->analysis_type=this->analysis_type;56 54 57 55 /*now deal with hooks and objects: */ … … 70 68 _printf_("Penpair:\n"); 71 69 _printf_(" id: " << id << "\n"); 72 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");73 70 hnodes->DeepEcho(); 74 71 … … 80 77 _printf_("Penpair:\n"); 81 78 _printf_(" id: " << id << "\n"); 82 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");83 79 hnodes->Echo(); 84 80 … … 95 91 MARSHALLING_ENUM(PenpairEnum); 96 92 MARSHALLING(id); 97 MARSHALLING(analysis_type);98 93 99 94 if(marshall_direction==MARSHALLING_BACKWARD){ -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Penpair.h ¶
r23588 r23959 18 18 private: 19 19 int id; 20 int analysis_type;21 20 Hook *hnodes; //hook to 2 nodes 22 21 Node **nodes; … … 27 26 /*Penpair constructors, destructors: {{{*/ 28 27 Penpair(); 29 Penpair(int penpair_id,int* penpair_node_ids ,int analysis_type);28 Penpair(int penpair_id,int* penpair_node_ids); 30 29 ~Penpair(); 31 30 /*}}}*/ -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Riftfront.cpp ¶
r23644 r23959 28 28 } 29 29 /*}}}*/ 30 Riftfront::Riftfront(int riftfront_id,int i, IoModel* iomodel ,int riftfront_analysis_type){/*{{{*/30 Riftfront::Riftfront(int riftfront_id,int i, IoModel* iomodel){/*{{{*/ 31 31 32 32 /*data: */ … … 54 54 /*id: */ 55 55 this->id=riftfront_id; 56 this->analysis_type=riftfront_analysis_type;57 56 58 57 /*hooks: */ … … 109 108 /*copy fields: */ 110 109 riftfront->id=this->id; 111 riftfront->analysis_type=this->analysis_type;112 110 riftfront->type=this->type; 113 111 riftfront->fill=this->fill; … … 148 146 _printf_("Riftfront:\n"); 149 147 _printf_(" id: " << id << "\n"); 150 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");151 148 hnodes->DeepEcho(); 152 149 helements->DeepEcho(); … … 159 156 _printf_("Riftfront:\n"); 160 157 _printf_(" id: " << id << "\n"); 161 _printf_(" analysis_type: " << EnumToStringx(analysis_type) << "\n");162 158 _printf_(" hnodes: " << hnodes << "\n"); 163 159 _printf_(" helements: " << helements << "\n"); … … 189 185 MARSHALLING_ENUM(RiftfrontEnum); 190 186 MARSHALLING(id); 191 MARSHALLING(analysis_type);192 187 MARSHALLING(type); 193 188 MARSHALLING(fill); -
TabularUnified issm/trunk-jpl/src/c/classes/Loads/Riftfront.h ¶
r23644 r23959 18 18 public: 19 19 int id; 20 int analysis_type;21 20 22 21 /*properties*/ … … 51 50 /*Riftfrontconstructors,destructors: {{{*/ 52 51 Riftfront(); 53 Riftfront(int riftfront_id,int i, IoModel* iomodel ,int analysis_type);52 Riftfront(int riftfront_id,int i, IoModel* iomodel); 54 53 ~Riftfront(); 55 54 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.