Changeset 19282


Ignore:
Timestamp:
04/09/15 17:09:13 (10 years ago)
Author:
schlegel
Message:

CHG: some marshalling cleanup of memory and warnings

Location:
issm/trunk-jpl/src/c
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.h

    r19237 r19282  
    122122                void               LinearFloatingiceMeltingRate();
    123123                void               MigrateGroundingLine(IssmDouble* sheet_ungrounding);
    124                 void               Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction,int numanalyses);
    125124                ElementMatrix*     NewElementMatrix(int approximation_enum=NoneApproximationEnum);
    126125                ElementMatrix*     NewElementMatrixCoupling(int number_nodes,int approximation_enum=NoneApproximationEnum);
     
    228227                virtual void       JacobianDeterminantSurface(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss)=0;
    229228                virtual void       JacobianDeterminantTop(IssmDouble* Jdet,IssmDouble* xyz_list_base,Gauss* gauss)=0;
     229                virtual void       Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction,int numanalyses);
    230230                virtual IssmDouble Masscon(IssmDouble* levelset)=0;
    231231                virtual IssmDouble MassFlux(IssmDouble* segment)=0;
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r19261 r19282  
    764764                }
    765765
    766                 /*Reset current configuration: */
     766                //Reset current configuration:
    767767                analysis_type=this->analysis_type_list[analysis_counter];
    768768                SetCurrentConfiguration(analysis_type);
  • issm/trunk-jpl/src/c/classes/Materials/Matice.cpp

    r19254 r19282  
    3030        this->helement=NULL;
    3131        this->element=NULL;
     32        this->isdamaged=false;
    3233        return;
    3334}
  • issm/trunk-jpl/src/c/classes/Materials/Matpar.cpp

    r19216 r19282  
    1818/*}}}*/
    1919Matpar::Matpar(int matpar_mid, IoModel* iomodel){/*{{{*/
     20
     21        rho_ice=0;
     22        rho_water=0;
     23        rho_freshwater=0;
     24        mu_water=0;
     25        heatcapacity=0;
     26        thermalconductivity=0;
     27        temperateiceconductivity=0;
     28        latentheat=0;
     29        beta=0;
     30        meltingpoint=0;
     31        referencetemperature=0;
     32        mixed_layer_capacity=0;
     33        thermal_exchange_velocity=0;
     34        g=0;
     35        omega=0;
     36        desfac=0;
     37        s0p=0;
     38        s0t=0;
     39        rlaps=0;
     40        rlapslgm=0;
     41        dpermil=0;
     42
     43        sediment_compressibility=0;
     44        sediment_porosity=0;
     45        sediment_thickness=0;
     46        water_compressibility=0;
     47
     48        epl_compressibility=0;
     49        epl_porosity=0;
     50        epl_init_thickness=0;
     51        epl_colapse_thickness=0;
     52        epl_max_thickness=0;
     53        epl_conductivity=0;
     54
     55        lithosphere_shear_modulus=0;
     56        lithosphere_density=0;
     57        mantle_shear_modulus=0;
     58        mantle_density=0;
     59
     60        poisson=0;
     61        young_modulus=0;
     62        ridging_exponent=0;
     63        cohesion=0;
     64        internal_friction_coef=0;
     65        compression_coef=0;
     66        traction_coef=0;
     67        time_relaxation_stress=0;
     68        time_relaxation_damage=0;
    2069
    2170        bool isefficientlayer;
     
    151200}               
    152201/*}}}*/
    153 int    Matpar::Id(void){ return mid; }/*{{{*/
    154 /*}}}*/
    155 int Matpar::ObjectEnum(void){/*{{{*/
     202int  Matpar::Id(void){ return mid; }/*{{{*/
     203/*}}}*/
     204int  Matpar::ObjectEnum(void){/*{{{*/
    156205
    157206        return MatparEnum;
     
    237286        MARSHALLING(dpermil);
    238287
    239         /*hydrology Dual Porous Continuum: */
     288        //hydrology Dual Porous Continuum:
    240289        MARSHALLING(sediment_compressibility);
    241290        MARSHALLING(sediment_porosity);
     
    250299        MARSHALLING(epl_conductivity);
    251300
    252         /*gia: */
     301        //gia:
    253302        MARSHALLING(lithosphere_shear_modulus);
    254303        MARSHALLING(lithosphere_density);
     
    256305        MARSHALLING(mantle_density);
    257306
    258         /*Sea ice*/
     307        //Sea ice:
    259308        MARSHALLING(poisson);
    260309        MARSHALLING(young_modulus);
  • issm/trunk-jpl/src/c/datastructures/DataSet.cpp

    r19261 r19282  
    2929        sorted=0;
    3030        numsorted=0;
     31        presorted=0;
     32        enum_type=-1;
    3133        sorted_ids=NULL;
    3234        id_offsets=NULL;
     
    3840
    3941        sorted=0;
     42        numsorted=0;
     43        presorted=0;
    4044        sorted_ids=NULL;
    4145        id_offsets=NULL;
     
    8791
    8892/*Specific methods*/
    89 void DataSet::Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
     93void  DataSet::Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
    9094       
    9195        vector<Object*>::iterator obj;
Note: See TracChangeset for help on using the changeset viewer.