Changeset 21396
- Timestamp:
- 11/17/16 22:54:30 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-larour-NatClimateChange2016/src/c/cores/sealevelrise_core_noneustatic.cpp
r21079 r21396 18 18 19 19 Vector<IssmDouble> *Sgo = NULL; //ocean convolution of the perturbation to gravity potential. 20 Vector<IssmDouble> *Sgo_rot= NULL; // rotational feedback 20 21 IssmDouble Sgo_oceanaverage = 0; //average of Sgo over the ocean. 21 22 … … 27 28 bool spherical=true; 28 29 bool converged=true; 30 bool rotation=true; 29 31 bool verboseconvolution=true; 30 32 int max_nonlinear_iterations; … … 41 43 femmodel->parameters->FindParam(&eps_abs,SealevelriseAbstolEnum); 42 44 femmodel->parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 45 46 /*computational flag: */ 47 femmodel->parameters->FindParam(&rotation,SealevelriseRotationEnum); 43 48 44 49 /*first, recover lat,long and radius vectors from vertices: */ … … 75 80 Sgo->Assemble(); 76 81 82 if(rotation){ 83 /*call rotational feedback module: */ 84 Sgo_rot = new Vector<IssmDouble>(gsize); Sgo_rot->Assemble(); 85 femmodel->SealevelriseRotationalFeedback(Sgo_rot,Sg_old,latitude,longitude,radius); 86 Sgo_rot->Assemble(); 87 88 Sgo->AXPY(Sgo_rot,1); 89 } 90 77 91 /*we need to average Sgo over the ocean: RHS term 5 in Eq.4 of Farrel and clarke. Only the elements can do that: */ 78 92 Sgo_oceanaverage=femmodel->SealevelriseOceanAverage(Sgo);
Note:
See TracChangeset
for help on using the changeset viewer.