Ignore:
Timestamp:
07/08/16 12:12:08 (9 years ago)
Author:
adhikari
Message:

CHG: GetAreaSpherical added to compute spherical area

File:
1 edited

Legend:

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

    r20810 r20871  
    23222322                Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(i));
    23232323                oceanarea_cpu += element->OceanArea();
    2324                 eartharea_cpu+= element->GetArea3D();
     2324                eartharea_cpu+= element->GetAreaSpherical();
    23252325        }
    23262326        ISSM_MPI_Reduce (&oceanarea_cpu,&oceanarea,1,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,0,IssmComm::GetComm() );
     
    23822382                Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(i));
    23832383                oceanarea_cpu += element->OceanArea();
    2384                 eartharea_cpu+= element->GetArea3D();
     2384                eartharea_cpu+= element->GetAreaSpherical();
    23852385        }
    23862386        ISSM_MPI_Reduce (&oceanarea_cpu,&oceanarea,1,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,0,IssmComm::GetComm() );
Note: See TracChangeset for help on using the changeset viewer.