Changeset 21396


Ignore:
Timestamp:
11/17/16 22:54:30 (8 years ago)
Author:
Eric.Larour
Message:

CHG: rotational feedback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatClimateChange2016/src/c/cores/sealevelrise_core_noneustatic.cpp

    r21079 r21396  
    1818
    1919        Vector<IssmDouble> *Sgo    = NULL; //ocean convolution of the perturbation to gravity potential.
     20        Vector<IssmDouble> *Sgo_rot= NULL; // rotational feedback
    2021        IssmDouble          Sgo_oceanaverage = 0;  //average of Sgo over the ocean.
    2122
     
    2728        bool spherical=true;
    2829        bool converged=true;
     30        bool rotation=true;
    2931        bool verboseconvolution=true;
    3032        int max_nonlinear_iterations;
     
    4143        femmodel->parameters->FindParam(&eps_abs,SealevelriseAbstolEnum);
    4244        femmodel->parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
     45       
     46        /*computational flag: */
     47        femmodel->parameters->FindParam(&rotation,SealevelriseRotationEnum);
    4348
    4449        /*first, recover lat,long and radius vectors from vertices: */
     
    7580                Sgo->Assemble();
    7681
     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               
    7791                /*we need to average Sgo over the ocean: RHS term  5 in Eq.4 of Farrel and clarke. Only the elements can do that: */
    7892                Sgo_oceanaverage=femmodel->SealevelriseOceanAverage(Sgo);
Note: See TracChangeset for help on using the changeset viewer.