Ignore:
Timestamp:
04/23/19 09:55:09 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: adding more requested output, ice front flux seems to be working, grounding line flux still fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r23885 r23888  
    15461546
    15471547}/*}}}*/
     1548void FemModel::GroundinglineMassFluxx(IssmDouble* pM, bool scaled){/*{{{*/
     1549
     1550        IssmDouble local_mass_flux = 0;
     1551        IssmDouble total_mass_flux;
     1552
     1553        for(int i=0;i<this->elements->Size();i++){
     1554                Element* element=xDynamicCast<Element*>(this->elements->GetObjectByOffset(i));
     1555                local_mass_flux+=element->GroundinglineMassFlux(scaled);
     1556        }
     1557        ISSM_MPI_Reduce(&local_mass_flux,&total_mass_flux,1,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,0,IssmComm::GetComm() );
     1558        ISSM_MPI_Bcast(&total_mass_flux,1,ISSM_MPI_DOUBLE,0,IssmComm::GetComm());
     1559
     1560        /*Assign output pointers: */
     1561        *pM=total_mass_flux;
     1562
     1563}/*}}}*/
    15481564void FemModel::IceMassx(IssmDouble* pM, bool scaled){/*{{{*/
    15491565
     
    22062222                                        case GroundedAreaEnum:                   this->GroundedAreax(&double_result,false);             break;
    22072223                                        case GroundedAreaScaledEnum:             this->GroundedAreax(&double_result,true);              break;
     2224                                        case GroundinglineMassFluxEnum:          this->GroundinglineMassFluxx(&double_result,false);    break;
    22082225                                        case FloatingAreaEnum:                   this->FloatingAreax(&double_result,false);             break;
    22092226                                        case FloatingAreaScaledEnum:             this->FloatingAreax(&double_result,true);              break;
     
    24032420                case IceVolumeAboveFloatationEnum:       this->IceVolumeAboveFloatationx(responses, false); break;
    24042421                case IceVolumeAboveFloatationScaledEnum: this->IceVolumeAboveFloatationx(responses, true); break;
    2405                 case IcefrontMassFluxEnum:               this->IcefrontMassFluxx(responses, true); break;
     2422                case IcefrontMassFluxEnum:               this->IcefrontMassFluxx(responses, false); break;
    24062423                case GroundedAreaEnum:                   this->GroundedAreax(responses, false); break;
    24072424                case GroundedAreaScaledEnum:             this->GroundedAreax(responses, true); break;
Note: See TracChangeset for help on using the changeset viewer.