Changeset 15384


Ignore:
Timestamp:
07/01/13 22:28:09 (12 years ago)
Author:
Eric.Larour
Message:

CHG: hydrology code was not well protected, as well as 3D code and rift code.

Location:
issm/trunk-jpl
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r15337 r15384  
    15271527        fi
    15281528        AM_CONDITIONAL([IOS], [test x$HAVE_IOS != xno])
    1529         AC_DEFINE([_HAVE_IOS_],[1],[with ios.])
    15301529        AC_MSG_RESULT($HAVE_IOS)
    15311530        dnl }}}
     
    15551554        AM_CONDITIONAL([ANDROIDJNI], [test x$HAVE_ANDROID = xjni])
    15561555        AM_CONDITIONAL([ANDROIDEXE], [test x$HAVE_ANDROID = xexe])
    1557         AC_DEFINE([_HAVE_ANDROID_],[1],[with android.])
    15581556        AC_MSG_RESULT($HAVE_ANDROID)
    15591557        dnl }}}
  • issm/trunk-jpl/src/c/classes/Elements/Element.h

    r15305 r15384  
    8484                virtual void   SmbGradients()=0;
    8585                virtual int    UpdatePotentialUngrounding(IssmDouble* potential_sheet_ungrounding,Vector<IssmDouble>* vec_nodes_on_iceshelf,IssmDouble* nodes_on_iceshelf)=0;
     86                virtual void UpdateConstraints(void)=0;
    8687                virtual void   ResetCoordinateSystem()=0;
    8788
     
    133134                virtual void GetHydrologyDCInefficientHmax(IssmDouble* ph_max, Node* innode)=0;
    134135                virtual void GetHydrologyTransfer(Vector<IssmDouble>* transfer)=0;
    135                 virtual void UpdateConstraints(void)=0;
    136136                virtual void HydrologyEPLGetMask(Vector<IssmDouble>* mask)=0;
    137137                virtual void HydrologyEPLGetActive(Vector<IssmDouble>* active)=0;
  • issm/trunk-jpl/src/c/classes/Elements/Penta.h

    r15377 r15384  
    215215                Tria*     SpawnTria(int g0, int g1, int g2);
    216216                void      SurfaceNormal(IssmDouble* surface_normal, IssmDouble xyz_list[3][3]);
     217                void     UpdateConstraints(void);
    217218
    218219                #ifdef _HAVE_DIAGNOSTIC_
     
    314315                void    HydrologyEPLGetMask(Vector<IssmDouble>* vec_mask);
    315316                void    InputUpdateFromSolutionHydrologyDCInefficient(IssmDouble* solution);
    316                 void    UpdateConstraints(void);
    317317                #endif
    318318                #ifdef _HAVE_THERMAL_
  • issm/trunk-jpl/src/c/classes/Elements/Tria.h

    r15372 r15384  
    214214                void             SetClone(int* minranks);
    215215                void             SurfaceNormal(IssmDouble* surface_normal, IssmDouble xyz_list[3][3]);
     216                void             UpdateConstraints(void);
    216217
    217218                #ifdef _HAVE_DIAGNOSTIC_
     
    248249                void    GetSolutionFromInputsOneDof(Vector<IssmDouble>* solution,int enum_type);
    249250                void    CreateHydrologyWaterVelocityInput(void);
    250                 void    UpdateConstraints(void);
    251251                void      InputUpdateFromSolutionHydrology(IssmDouble* solution);
    252252                void      InputUpdateFromSolutionHydrologyShreve(IssmDouble* solution);
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r15352 r15384  
    15831583#endif
    15841584
     1585#ifdef _HAVE_HYDROLOGY_
    15851586void FemModel::HydrologyEPLupdateDomainx(void){ /*{{{*/
    15861587
     
    16661667}
    16671668/*}}}*/
     1669#endif
  • issm/trunk-jpl/src/c/classes/Materials/Matice.cpp

    r15375 r15384  
    567567                                        return;
    568568                                }
     569                                #ifdef _HAVE_3D_
    569570                                case PentaEnum: {
    570571                                        IssmDouble valuesp[6];
     
    573574                                        return;
    574575                                }
     576                                #endif
    575577                                default: _error_("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet");
    576578                        }
     
    631633                                        return;
    632634                                }
     635                                #ifdef _HAVE_3D_
    633636                                case PentaEnum:{
    634637                                        IssmDouble valuesp[6];
     
    637640                                        return;
    638641                                }
     642                                # endif
    639643                                default: _error_("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet");
    640644                        }
  • issm/trunk-jpl/src/c/modules/ResetConstraintsx/ResetConstraintsx.cpp

    r15104 r15384  
    22 * \brief: reset thermal penalties
    33 */
     4
     5#ifdef HAVE_CONFIG_H
     6        #include <config.h>
     7#else
     8#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
     9#endif
    410
    511#include "./ResetConstraintsx.h"
     
    2127        /*Do we have penalties linked to rifts? In this case, run our special rifts penalty
    2228         * management routine, otherwise, skip : */
     29        #ifdef _HAVE_RIFTS_
    2330        if (RiftIsPresent(loads,analysis_type)){
    2431                _error_("rift constraints reset not supported yet!");
    2532        }
    26         else if(ThermalIsPresent(loads,analysis_type)){
     33        #endif
     34        #ifdef _HAVE_THERMAL_
     35        if(ThermalIsPresent(loads,analysis_type)){
    2736                ThermalConstraintsReset(loads,analysis_type);
    2837        }
    29         else{ /*Do nothing, no constraints management!:*/}
     38        #endif
    3039
    3140}
Note: See TracChangeset for help on using the changeset viewer.