[19984] | 1 | #include "./SealevelriseAnalysis.h"
|
---|
| 2 | #include "../toolkits/toolkits.h"
|
---|
| 3 | #include "../classes/classes.h"
|
---|
[24481] | 4 | #include "../classes/Inputs2/TransientInput2.h"
|
---|
[19984] | 5 | #include "../shared/shared.h"
|
---|
| 6 | #include "../modules/modules.h"
|
---|
| 7 |
|
---|
| 8 | /*Model processing*/
|
---|
| 9 | void SealevelriseAnalysis::CreateConstraints(Constraints* constraints,IoModel* iomodel){/*{{{*/
|
---|
| 10 | /*No constraints*/
|
---|
| 11 | }/*}}}*/
|
---|
| 12 | void SealevelriseAnalysis::CreateLoads(Loads* loads, IoModel* iomodel){/*{{{*/
|
---|
| 13 | /*No loads*/
|
---|
| 14 | }/*}}}*/
|
---|
[23585] | 15 | void SealevelriseAnalysis::CreateNodes(Nodes* nodes,IoModel* iomodel,bool isamr){/*{{{*/
|
---|
[19984] | 16 | ::CreateNodes(nodes,iomodel,SealevelriseAnalysisEnum,P1Enum);
|
---|
| 17 | }/*}}}*/
|
---|
| 18 | int SealevelriseAnalysis::DofsPerNode(int** doflist,int domaintype,int approximation){/*{{{*/
|
---|
| 19 | return 1;
|
---|
| 20 | }/*}}}*/
|
---|
[24335] | 21 | void SealevelriseAnalysis::UpdateElements(Elements* elements,Inputs2* inputs2,IoModel* iomodel,int analysis_counter,int analysis_type){/*{{{*/
|
---|
[19984] | 22 |
|
---|
[22955] | 23 | int geodetic=0;
|
---|
[24469] | 24 | int dslmodel=0;
|
---|
[22955] | 25 |
|
---|
[19984] | 26 | /*Update elements: */
|
---|
| 27 | int counter=0;
|
---|
| 28 | for(int i=0;i<iomodel->numberofelements;i++){
|
---|
| 29 | if(iomodel->my_elements[i]){
|
---|
| 30 | Element* element=(Element*)elements->GetObjectByOffset(counter);
|
---|
[24335] | 31 | element->Update(inputs2,i,iomodel,analysis_counter,analysis_type,P1Enum);
|
---|
[19984] | 32 | counter++;
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | /*Create inputs: */
|
---|
[24335] | 37 | iomodel->FetchDataToInput(inputs2,elements,"md.mask.groundedice_levelset",MaskGroundediceLevelsetEnum);
|
---|
| 38 | iomodel->FetchDataToInput(inputs2,elements,"md.mask.ice_levelset",MaskIceLevelsetEnum);
|
---|
[22955] | 39 | //those only if we have requested geodetic computations:
|
---|
| 40 | iomodel->FetchData(&geodetic,"md.slr.geodetic");
|
---|
| 41 | if (geodetic){
|
---|
| 42 | char* masktype=NULL;
|
---|
| 43 | iomodel->FetchData(&masktype,"md.mask.type");
|
---|
| 44 | if (strcmp(masktype,"maskpsl")==0){
|
---|
[24335] | 45 | iomodel->FetchDataToInput(inputs2,elements,"md.mask.ocean_levelset",MaskOceanLevelsetEnum);
|
---|
| 46 | iomodel->FetchDataToInput(inputs2,elements,"md.mask.land_levelset",MaskLandLevelsetEnum);
|
---|
[22955] | 47 | }
|
---|
| 48 | xDelete<char>(masktype);
|
---|
| 49 | }
|
---|
[24335] | 50 | iomodel->FetchDataToInput(inputs2,elements,"md.slr.deltathickness",SealevelriseDeltathicknessEnum);
|
---|
| 51 | iomodel->FetchDataToInput(inputs2,elements,"md.slr.spcthickness",SealevelriseSpcthicknessEnum);
|
---|
| 52 | iomodel->FetchDataToInput(inputs2,elements,"md.slr.sealevel",SealevelEnum,0);
|
---|
| 53 | iomodel->FetchDataToInput(inputs2,elements,"md.geometry.bed",BedEnum);
|
---|
| 54 | iomodel->FetchDataToInput(inputs2,elements,"md.slr.Ngia",SealevelNGiaRateEnum);
|
---|
| 55 | iomodel->FetchDataToInput(inputs2,elements,"md.slr.Ugia",SealevelUGiaRateEnum);
|
---|
| 56 | iomodel->FetchDataToInput(inputs2,elements,"md.slr.hydro_rate",SealevelriseHydroRateEnum);
|
---|
[24469] | 57 |
|
---|
| 58 | /*dynamic sea level: */
|
---|
| 59 | iomodel->FetchData(&dslmodel,"md.dsl.model");
|
---|
| 60 | if (dslmodel==1){
|
---|
[24481] | 61 |
|
---|
| 62 | /*deal with global mean steric rate: */
|
---|
| 63 | IssmDouble* str=NULL;
|
---|
| 64 | IssmDouble* times = NULL;
|
---|
| 65 | int M,N;
|
---|
| 66 |
|
---|
| 67 | /*fetch str vector:*/
|
---|
| 68 | iomodel->FetchData(&str,&M,&N,"md.dsl.global_average_thermosteric_sea_level_change"); _assert_(M==2);
|
---|
| 69 |
|
---|
| 70 | //recover time vector:
|
---|
| 71 | times=xNew<IssmDouble>(N);
|
---|
| 72 | for(int t=0;t<N;t++) times[t] = str[N+t];
|
---|
| 73 |
|
---|
| 74 | /*create transient input: */
|
---|
| 75 | inputs2->SetTransientInput(DslGlobalAverageThermostericSeaLevelChangeEnum,times,N);
|
---|
| 76 | TransientInput2* transientinput = inputs2->GetTransientInput(DslGlobalAverageThermostericSeaLevelChangeEnum);
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 | for(int i=0;i<elements->Size();i++){
|
---|
| 80 | Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(i));
|
---|
| 81 |
|
---|
| 82 | for(int t=0;t<N;t++){
|
---|
| 83 | switch(element->ObjectEnum()){
|
---|
| 84 | case TriaEnum: transientinput->AddTriaTimeInput( t,1,&element->lid,&str[t],P0Enum); break;
|
---|
| 85 | case PentaEnum: transientinput->AddPentaTimeInput(t,1,&element->lid,&str[t],P0Enum); break;
|
---|
| 86 | default: _error_("Not implemented yet");
|
---|
| 87 | }
|
---|
| 88 | }
|
---|
| 89 | }
|
---|
| 90 |
|
---|
| 91 | /*cleanup:*/
|
---|
| 92 | xDelete<IssmDouble>(times);
|
---|
| 93 | iomodel->DeleteData(str,"md.dsl.global_average_thermosteric_sea_level_change");
|
---|
| 94 |
|
---|
| 95 | /*deal with dynamic sea level fields: */
|
---|
| 96 |
|
---|
[24469] | 97 | iomodel->FetchDataToInput(inputs2,elements,"md.dsl.sea_surface_height_change_above_geoid", DslSeaSurfaceHeightChangeAboveGeoidEnum);
|
---|
| 98 | iomodel->FetchDataToInput(inputs2,elements,"md.dsl.sea_water_pressure_change_at_sea_floor", DslSeaWaterPressureChangeAtSeaFloor);
|
---|
[24481] | 99 |
|
---|
| 100 | //TransientInput2* transientinput=inputs2->SetDatasetTransientInput(DslGlobalAverageThermostericSeaLevelChangeEnum,counter, times,N);
|
---|
[24469] | 101 | }
|
---|
| 102 | else _error_("Dsl model " << dslmodel << " not implemented yet!");
|
---|
| 103 |
|
---|
[22968] | 104 | /*Initialize cumdeltalthickness and sealevel rise rate input*/
|
---|
[24335] | 105 | InputUpdateFromConstantx(inputs2,elements,0.,SealevelriseCumDeltathicknessEnum);
|
---|
| 106 | InputUpdateFromConstantx(inputs2,elements,0.,SealevelNEsaRateEnum);
|
---|
| 107 | InputUpdateFromConstantx(inputs2,elements,0.,SealevelUEsaRateEnum);
|
---|
| 108 | InputUpdateFromConstantx(inputs2,elements,0.,SealevelRSLRateEnum);
|
---|
| 109 | InputUpdateFromConstantx(inputs2,elements,0.,SealevelEustaticMaskEnum);
|
---|
| 110 | InputUpdateFromConstantx(inputs2,elements,0.,SealevelEustaticOceanMaskEnum);
|
---|
[22968] | 111 |
|
---|
[19984] | 112 | }/*}}}*/
|
---|
| 113 | void SealevelriseAnalysis::UpdateParameters(Parameters* parameters,IoModel* iomodel,int solution_enum,int analysis_enum){/*{{{*/
|
---|
| 114 |
|
---|
[19986] | 115 | int nl;
|
---|
[19984] | 116 | IssmDouble* love_h=NULL;
|
---|
| 117 | IssmDouble* love_k=NULL;
|
---|
[20999] | 118 | IssmDouble* love_l=NULL;
|
---|
[24469] | 119 | int dslmodel=0;
|
---|
[23066] | 120 |
|
---|
[20029] | 121 | bool elastic=false;
|
---|
[20028] | 122 | IssmDouble* G_elastic = NULL;
|
---|
[20033] | 123 | IssmDouble* G_elastic_local = NULL;
|
---|
[20999] | 124 | IssmDouble* U_elastic = NULL;
|
---|
| 125 | IssmDouble* U_elastic_local = NULL;
|
---|
| 126 | IssmDouble* H_elastic = NULL;
|
---|
| 127 | IssmDouble* H_elastic_local = NULL;
|
---|
[20033] | 128 | int M,m,lower_row,upper_row;
|
---|
| 129 | IssmDouble degacc=.01;
|
---|
[19984] | 130 |
|
---|
[20036] | 131 | int numoutputs;
|
---|
| 132 | char** requestedoutputs = NULL;
|
---|
| 133 |
|
---|
[20136] | 134 | /*transition vectors: */
|
---|
| 135 | IssmDouble **transitions = NULL;
|
---|
| 136 | int *transitions_M = NULL;
|
---|
| 137 | int *transitions_N = NULL;
|
---|
| 138 | int ntransitions;
|
---|
| 139 |
|
---|
[19986] | 140 | /*some constant parameters: */
|
---|
[22961] | 141 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.geodetic_run_frequency",SealevelriseGeodeticRunFrequencyEnum));
|
---|
[20690] | 142 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.reltol",SealevelriseReltolEnum));
|
---|
| 143 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.abstol",SealevelriseAbstolEnum));
|
---|
| 144 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.maxiter",SealevelriseMaxiterEnum));
|
---|
[22955] | 145 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.loop_increment",SealevelriseLoopIncrementEnum));
|
---|
[20690] | 146 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.rigid",SealevelriseRigidEnum));
|
---|
[22955] | 147 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.horiz",SealevelriseHorizEnum));
|
---|
[20690] | 148 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.elastic",SealevelriseElasticEnum));
|
---|
[21331] | 149 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.rotation",SealevelriseRotationEnum));
|
---|
| 150 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.tide_love_h",SealevelriseTidalLoveHEnum));
|
---|
| 151 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.tide_love_k",SealevelriseTidalLoveKEnum));
|
---|
[21344] | 152 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.fluid_love",SealevelriseFluidLoveEnum));
|
---|
| 153 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.equatorial_moi",SealevelriseEquatorialMoiEnum));
|
---|
| 154 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.polar_moi",SealevelrisePolarMoiEnum));
|
---|
[21331] | 155 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.angular_velocity",SealevelriseAngularVelocityEnum));
|
---|
[21295] | 156 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.ocean_area_scaling",SealevelriseOceanAreaScalingEnum));
|
---|
[22955] | 157 | parameters->AddObject(iomodel->CopyConstantObject("md.slr.geodetic",SealevelriseGeodeticEnum));
|
---|
[19986] | 158 |
|
---|
[24481] | 159 |
|
---|
| 160 | /*Deal with elasticity {{{*/
|
---|
[20690] | 161 | iomodel->FetchData(&elastic,"md.slr.elastic");
|
---|
[24481] | 162 | if(elastic){
|
---|
[19984] | 163 |
|
---|
[20029] | 164 | /*love numbers: */
|
---|
[20690] | 165 | iomodel->FetchData(&love_h,&nl,NULL,"md.slr.love_h");
|
---|
| 166 | iomodel->FetchData(&love_k,&nl,NULL,"md.slr.love_k");
|
---|
[20999] | 167 | iomodel->FetchData(&love_l,&nl,NULL,"md.slr.love_l");
|
---|
[20022] | 168 |
|
---|
[20029] | 169 | /*compute elastic green function for a range of angles*/
|
---|
[20690] | 170 | iomodel->FetchData(°acc,"md.slr.degacc");
|
---|
[20034] | 171 | M=reCast<int,IssmDouble>(180./degacc+1.);
|
---|
[21742] | 172 |
|
---|
| 173 | // AD performance is sensitive to calls to ensurecontiguous.
|
---|
| 174 | // // Providing "t" will cause ensurecontiguous to be called.
|
---|
| 175 | #ifdef _HAVE_AD_
|
---|
[21741] | 176 | G_elastic=xNew<IssmDouble>(M,"t");
|
---|
| 177 | U_elastic=xNew<IssmDouble>(M,"t");
|
---|
| 178 | H_elastic=xNew<IssmDouble>(M,"t");
|
---|
[21742] | 179 | #else
|
---|
| 180 | G_elastic=xNew<IssmDouble>(M);
|
---|
| 181 | U_elastic=xNew<IssmDouble>(M);
|
---|
| 182 | H_elastic=xNew<IssmDouble>(M);
|
---|
| 183 | #endif
|
---|
| 184 |
|
---|
[20044] | 185 | /*compute combined legendre + love number (elastic green function:*/
|
---|
[20033] | 186 | m=DetermineLocalSize(M,IssmComm::GetComm());
|
---|
| 187 | GetOwnershipBoundariesFromRange(&lower_row,&upper_row,m,IssmComm::GetComm());
|
---|
[21742] | 188 | // AD performance is sensitive to calls to ensurecontiguous.
|
---|
| 189 | // // Providing "t" will cause ensurecontiguous to be called.
|
---|
| 190 | #ifdef _HAVE_AD_
|
---|
[21741] | 191 | G_elastic_local=xNew<IssmDouble>(m,"t");
|
---|
| 192 | U_elastic_local=xNew<IssmDouble>(m,"t");
|
---|
| 193 | H_elastic_local=xNew<IssmDouble>(m,"t");
|
---|
[21742] | 194 | #else
|
---|
| 195 | G_elastic_local=xNew<IssmDouble>(m);
|
---|
| 196 | U_elastic_local=xNew<IssmDouble>(m);
|
---|
| 197 | H_elastic_local=xNew<IssmDouble>(m);
|
---|
| 198 | #endif
|
---|
[20033] | 199 |
|
---|
| 200 | for(int i=lower_row;i<upper_row;i++){
|
---|
[20029] | 201 | IssmDouble alpha,x;
|
---|
| 202 | alpha= reCast<IssmDouble>(i)*degacc * PI / 180.0;
|
---|
| 203 |
|
---|
[20033] | 204 | G_elastic_local[i-lower_row]= (love_k[nl-1]-love_h[nl-1])/2.0/sin(alpha/2.0);
|
---|
[20999] | 205 | U_elastic_local[i-lower_row]= (love_h[nl-1])/2.0/sin(alpha/2.0);
|
---|
| 206 | H_elastic_local[i-lower_row]= 0;
|
---|
[21908] | 207 | IssmDouble Pn = 0.;
|
---|
| 208 | IssmDouble Pn1 = 0.;
|
---|
| 209 | IssmDouble Pn2 = 0.;
|
---|
| 210 | IssmDouble Pn_p = 0.;
|
---|
| 211 | IssmDouble Pn_p1 = 0.;
|
---|
| 212 | IssmDouble Pn_p2 = 0.;
|
---|
| 213 |
|
---|
[20033] | 214 | for (int n=0;n<nl;n++) {
|
---|
[20999] | 215 | IssmDouble deltalove_G;
|
---|
| 216 | IssmDouble deltalove_U;
|
---|
[20033] | 217 |
|
---|
[20999] | 218 | deltalove_G = (love_k[n]-love_k[nl-1]-love_h[n]+love_h[nl-1]);
|
---|
| 219 | deltalove_U = (love_h[n]-love_h[nl-1]);
|
---|
[23066] | 220 |
|
---|
[20999] | 221 | /*compute legendre polynomials: P_n(cos\theta) & d P_n(cos\theta)/ d\theta: */
|
---|
| 222 | if(n==0){
|
---|
| 223 | Pn=1;
|
---|
| 224 | Pn_p=0;
|
---|
| 225 | }
|
---|
| 226 | else if(n==1){
|
---|
| 227 | Pn = cos(alpha);
|
---|
| 228 | Pn_p = 1;
|
---|
| 229 | }
|
---|
| 230 | else{
|
---|
| 231 | Pn = ( (2*n-1)*cos(alpha)*Pn1 - (n-1)*Pn2 ) /n;
|
---|
| 232 | Pn_p = ( (2*n-1)*(Pn1+cos(alpha)*Pn_p1) - (n-1)*Pn_p2 ) /n;
|
---|
| 233 | }
|
---|
[20033] | 234 | Pn2=Pn1; Pn1=Pn;
|
---|
[20999] | 235 | Pn_p2=Pn_p1; Pn_p1=Pn_p;
|
---|
[20033] | 236 |
|
---|
[20999] | 237 | G_elastic_local[i-lower_row] += deltalove_G*Pn; // gravitational potential
|
---|
| 238 | U_elastic_local[i-lower_row] += deltalove_U*Pn; // vertical (up) displacement
|
---|
| 239 | H_elastic_local[i-lower_row] += sin(alpha)*love_l[n]*Pn_p; // horizontal displacements
|
---|
[20033] | 240 | }
|
---|
| 241 | }
|
---|
| 242 |
|
---|
[20999] | 243 | /*merge G_elastic_local into G_elastic; U_elastic_local into U_elastic; H_elastic_local to H_elastic:{{{*/
|
---|
[20033] | 244 | int* recvcounts=xNew<int>(IssmComm::GetSize());
|
---|
| 245 | int* displs=xNew<int>(IssmComm::GetSize());
|
---|
| 246 |
|
---|
| 247 | //recvcounts:
|
---|
| 248 | ISSM_MPI_Allgather(&m,1,ISSM_MPI_INT,recvcounts,1,ISSM_MPI_INT,IssmComm::GetComm());
|
---|
| 249 |
|
---|
| 250 | /*displs: */
|
---|
| 251 | ISSM_MPI_Allgather(&lower_row,1,ISSM_MPI_INT,displs,1,ISSM_MPI_INT,IssmComm::GetComm());
|
---|
| 252 |
|
---|
| 253 | /*All gather:*/
|
---|
| 254 | ISSM_MPI_Allgatherv(G_elastic_local, m, ISSM_MPI_DOUBLE, G_elastic, recvcounts, displs, ISSM_MPI_DOUBLE,IssmComm::GetComm());
|
---|
[20999] | 255 | ISSM_MPI_Allgatherv(U_elastic_local, m, ISSM_MPI_DOUBLE, U_elastic, recvcounts, displs, ISSM_MPI_DOUBLE,IssmComm::GetComm());
|
---|
| 256 | ISSM_MPI_Allgatherv(H_elastic_local, m, ISSM_MPI_DOUBLE, H_elastic, recvcounts, displs, ISSM_MPI_DOUBLE,IssmComm::GetComm());
|
---|
[20033] | 257 | /*free ressources: */
|
---|
| 258 | xDelete<int>(recvcounts);
|
---|
| 259 | xDelete<int>(displs);
|
---|
| 260 |
|
---|
| 261 | /*}}}*/
|
---|
| 262 |
|
---|
[20029] | 263 | /*Avoid singularity at 0: */
|
---|
| 264 | G_elastic[0]=G_elastic[1];
|
---|
| 265 | parameters->AddObject(new DoubleVecParam(SealevelriseGElasticEnum,G_elastic,M));
|
---|
[20999] | 266 | U_elastic[0]=U_elastic[1];
|
---|
| 267 | parameters->AddObject(new DoubleVecParam(SealevelriseUElasticEnum,U_elastic,M));
|
---|
| 268 | H_elastic[0]=H_elastic[1];
|
---|
| 269 | parameters->AddObject(new DoubleVecParam(SealevelriseHElasticEnum,H_elastic,M));
|
---|
[20028] | 270 |
|
---|
[20029] | 271 | /*free ressources: */
|
---|
| 272 | xDelete<IssmDouble>(love_h);
|
---|
| 273 | xDelete<IssmDouble>(love_k);
|
---|
[20999] | 274 | xDelete<IssmDouble>(love_l);
|
---|
[20029] | 275 | xDelete<IssmDouble>(G_elastic);
|
---|
[20033] | 276 | xDelete<IssmDouble>(G_elastic_local);
|
---|
[20999] | 277 | xDelete<IssmDouble>(U_elastic);
|
---|
| 278 | xDelete<IssmDouble>(U_elastic_local);
|
---|
| 279 | xDelete<IssmDouble>(H_elastic);
|
---|
| 280 | xDelete<IssmDouble>(H_elastic_local);
|
---|
[24481] | 281 | } /*}}}*/
|
---|
| 282 | /*Transitions:{{{ */
|
---|
[20690] | 283 | iomodel->FetchData(&transitions,&transitions_M,&transitions_N,&ntransitions,"md.slr.transitions");
|
---|
[20136] | 284 | if(transitions){
|
---|
| 285 | parameters->AddObject(new DoubleMatArrayParam(SealevelriseTransitionsEnum,transitions,ntransitions,transitions_M,transitions_N));
|
---|
| 286 |
|
---|
| 287 | for(int i=0;i<ntransitions;i++){
|
---|
| 288 | IssmDouble* transition=transitions[i];
|
---|
| 289 | xDelete<IssmDouble>(transition);
|
---|
| 290 | }
|
---|
| 291 | xDelete<IssmDouble*>(transitions);
|
---|
[20138] | 292 | xDelete<int>(transitions_M);
|
---|
| 293 | xDelete<int>(transitions_N);
|
---|
[24481] | 294 | } /*}}}*/
|
---|
| 295 | /*Requested outputs {{{*/
|
---|
[20690] | 296 | iomodel->FindConstant(&requestedoutputs,&numoutputs,"md.slr.requested_outputs");
|
---|
[20036] | 297 | if(numoutputs)parameters->AddObject(new StringArrayParam(SealevelriseRequestedOutputsEnum,requestedoutputs,numoutputs));
|
---|
[20690] | 298 | iomodel->DeleteData(&requestedoutputs,numoutputs,"md.slr.requested_outputs");
|
---|
[24481] | 299 | /*}}}*/
|
---|
[20029] | 300 |
|
---|
[19984] | 301 | }/*}}}*/
|
---|
| 302 |
|
---|
| 303 | /*Finite Element Analysis*/
|
---|
| 304 | void SealevelriseAnalysis::Core(FemModel* femmodel){/*{{{*/
|
---|
| 305 | _error_("not implemented");
|
---|
| 306 | }/*}}}*/
|
---|
| 307 | ElementVector* SealevelriseAnalysis::CreateDVector(Element* element){/*{{{*/
|
---|
| 308 | /*Default, return NULL*/
|
---|
| 309 | return NULL;
|
---|
| 310 | }/*}}}*/
|
---|
| 311 | ElementMatrix* SealevelriseAnalysis::CreateJacobianMatrix(Element* element){/*{{{*/
|
---|
| 312 | _error_("Not implemented");
|
---|
| 313 | }/*}}}*/
|
---|
| 314 | ElementMatrix* SealevelriseAnalysis::CreateKMatrix(Element* element){/*{{{*/
|
---|
| 315 | _error_("not implemented yet");
|
---|
| 316 | }/*}}}*/
|
---|
| 317 | ElementVector* SealevelriseAnalysis::CreatePVector(Element* element){/*{{{*/
|
---|
| 318 | _error_("not implemented yet");
|
---|
| 319 | }/*}}}*/
|
---|
| 320 | void SealevelriseAnalysis::GetSolutionFromInputs(Vector<IssmDouble>* solution,Element* element){/*{{{*/
|
---|
| 321 | _error_("not implemented yet");
|
---|
| 322 | }/*}}}*/
|
---|
| 323 | void SealevelriseAnalysis::GradientJ(Vector<IssmDouble>* gradient,Element* element,int control_type,int control_index){/*{{{*/
|
---|
| 324 | _error_("Not implemented yet");
|
---|
| 325 | }/*}}}*/
|
---|
| 326 | void SealevelriseAnalysis::InputUpdateFromSolution(IssmDouble* solution,Element* element){/*{{{*/
|
---|
[22955] | 327 | _error_("not implemeneted yet!");
|
---|
[20153] | 328 |
|
---|
[19984] | 329 | }/*}}}*/
|
---|
| 330 | void SealevelriseAnalysis::UpdateConstraints(FemModel* femmodel){/*{{{*/
|
---|
| 331 | /*Default, do nothing*/
|
---|
| 332 | return;
|
---|
| 333 | }/*}}}*/
|
---|