Ignore:
Timestamp:
07/19/18 14:22:19 (7 years ago)
Author:
tpelle
Message:

CHG: working on getting groundingline height to work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/FloatingiceMeltingRatePicox/FloatingiceMeltingRatePicox.cpp

    r22918 r22974  
    2121           }
    2222
    23         /*PICO nelt rate parameterization (Reese et al., 2018)*/
     23        /*PICO melt rate parameterization (Reese et al., 2018)*/
    2424   femmodel->parameters->FindParam(&maxbox,BasalforcingsPicoMaxboxcountEnum);
    2525   UpdateBoxIdsPico(femmodel);
     
    3232        /*Optional buoyant plume melt rate parameterization (Lazeroms et al., 2018) */
    3333        femmodel->parameters->FindParam(&isplume,BasalforcingsPicoIsplumeEnum);
    34         if(isplume){
    35                    ComputeSubshelfSlopePlume(femmodel);
    36                         ComputeGroundingLineDepthPlume(femmodel);
    37          ComputeBasalMeltPlume(femmodel);
    38         }
     34        if(isplume) ComputeBasalMeltPlume(femmodel);
    3935}/*}}}*/
    4036
     
    5248        femmodel->elements->InputDuplicate(MaskGroundediceLevelsetEnum,DistanceToGroundinglineEnum);
    5349        femmodel->DistanceToFieldValue(MaskGroundediceLevelsetEnum,0.,DistanceToGroundinglineEnum);
    54        
     50
    5551        femmodel->elements->InputDuplicate(MaskIceLevelsetEnum,DistanceToCalvingfrontEnum);
    5652        femmodel->DistanceToFieldValue(MaskIceLevelsetEnum,0.,DistanceToCalvingfrontEnum);
     
    125121        IssmDouble* sumareas =xNew<IssmDouble>(num_basins*maxbox);
    126122        ISSM_MPI_Allreduce(boxareas,sumareas,num_basins*maxbox,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
    127         if(sumareas[0]==0){_error_("No elements in box 0, basal meltrates will be 0. Consider decreasing md.basalforcings.maxboxcount or refining your mesh!");}
     123        //if(sumareas[0]==0){_error_("No elements in box 0, basal meltrates will be 0. Consider decreasing md.basalforcings.maxboxcount or refining your mesh!");}
    128124       
    129125        /*Update parameters to keep track of the new areas in future calculations*/
     
    232228        xDelete<IssmDouble>(boxareas);
    233229}/*}}}*/
    234 void ComputeSubshelfSlopePlume(FemModel* femmodel){/*{{{*/
    235         for(int i=0;i<femmodel->elements->Size();i++){
    236                 Element* element=xDynamicCast<Element*>(femmodel->elements->GetObjectByOffset(i));
    237                 element->PicoComputeBaseSlope();
    238         }
    239 }/*}}}*/
    240 void ComputeGroundingLineDepthPlume(FemModel* femmodel){/*{{{*/
    241         for(int i=0;i<femmodel->elements->Size();i++){
    242                 Element* element=xDynamicCast<Element*>(femmodel->elements->GetObjectByOffset(i));
    243                 element->PicoComputeGroundingLineDepth();
    244         }
    245 }/*}}}*/
    246230void ComputeBasalMeltPlume(FemModel* femmodel){/*{{{*/
    247231        for(int i=0;i<femmodel->elements->Size();i++){
Note: See TracChangeset for help on using the changeset viewer.