Changeset 9785


Ignore:
Timestamp:
09/12/11 18:30:55 (14 years ago)
Author:
Eric.Larour
Message:

Added _HAVE_CONTROL_ and _HAVE_DIAGNOSTIC_ in IceFront.
Some cleanup in Makefile.am of adic.
Conditional compilation of ad/ directory.

Location:
issm/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/ad/Makefile.am

    r9773 r9785  
    3838                                        ./objects/Material.h\
    3939                                        ./objects/Load.h\
    40                                         ./objects/Contour.h\
    41                                         ./objects/Contour.cpp\
    42                                         ./objects/OptArgs.h\
    43                                         ./objects/OptPars.h\
    4440                                        ./objects/Loads/Friction.h\
    4541                                        ./objects/Loads/Friction.cpp\
     
    165161                                        ./Container/Nodes.h\
    166162                                        ./Container/Nodes.cpp\
    167                                         ./Container/Options.h\
    168                                         ./Container/Options.cpp\
    169163                                        ./Container/Parameters.h\
    170164                                        ./Container/Parameters.cpp\
     
    276270                                        ./modules/InputScalex/InputScalex.h\
    277271                                        ./modules/InputScalex/InputScalex.cpp\
    278                                         ./modules/SurfaceAreax/SurfaceAreax.h\
    279                                         ./modules/SurfaceAreax/SurfaceAreax.cpp\
    280272                                        ./modules/CreateNodalConstraintsx/CreateNodalConstraintsx.h\
    281273                                        ./modules/CreateNodalConstraintsx/CreateNodalConstraintsx.cpp\
     
    325317                                        ./modules/ConstraintsStatex/ConstraintsStatex.h\
    326318                                        ./modules/ConstraintsStatex/ConstraintsStateLocal.h\
    327                                         ./modules/Responsex/Responsex.h\
    328                                         ./modules/Responsex/Responsex.cpp\
    329319                                        ./modules/RequestedOutputsx/RequestedOutputsx.h\
    330320                                        ./modules/RequestedOutputsx/RequestedOutputsx.cpp\
     
    472462                                          ./shared/Numerics/BrentSearch.cpp\
    473463                                          ./shared/Numerics/OptimalSearch.cpp\
    474                                           ./shared/Numerics/OptFunc.cpp
     464                                          ./shared/Numerics/OptFunc.cpp\
     465                                          ./objects/OptArgs.h\
     466                                          ./objects/OptPars.h
     467
    475468endif
    476469#}}}
     
    539532                                          ./modules/RheologyBbarx/RheologyBbarx.h\
    540533                                          ./modules/MassFluxx/MassFluxx.cpp\
    541                                           ./modules/MassFluxx/MassFluxx.h
     534                                          ./modules/MassFluxx/MassFluxx.h\
     535                                          ./modules/SurfaceAreax/SurfaceAreax.h\
     536                                          ./modules/SurfaceAreax/SurfaceAreax.cpp\
     537                                          ./modules/Responsex/Responsex.h\
     538                                          ./modules/Responsex/Responsex.cpp
    542539endif
    543540#}}}
  • issm/trunk/src/c/Makefile.am

    r9775 r9785  
    10501050if DAKOTA
    10511051libpISSM_a_SOURCES +=  ./objects/DakotaPlugin.h\
    1052                                           ./objects/DakotaPlugin.cpp\
    1053                                           ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.h\
    1054                                           ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp\
    1055                                           ./modules/DakotaResponsesx/DakotaResponsesx.h\
    1056                                           ./modules/DakotaResponsesx/DakotaResponsesx.cpp\
    1057                                           ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.h\
    1058                                           ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.cpp\
    1059                                           ./modules/AverageOntoPartitionx/AverageOntoPartitionx.cpp\
    1060                                           ./modules/AverageOntoPartitionx/AverageOntoPartitionx.h\
    1061                                           ./modules/Dakotax/Dakotax.h\
    1062                                           ./modules/Dakotax/Dakotax.cpp\
    1063                                           ./modules/Dakotax/DakotaMPI_Bcast.cpp\
    1064                                           ./modules/Dakotax/DakotaFree.cpp\
    1065                                           ./modules/Dakotax/SpawnCore.cpp\
    1066                                           ./modules/Dakotax/SpawnCoreParallel.cpp\
    1067                                           ./modules/Dakotax/DescriptorIndex.cpp\
    1068                                           ./modules/AverageOntoPartitionx/AverageOntoPartitionx.cpp\
    1069                                           ./modules/ModelProcessorx/Qmu/CreateParametersQmu.cpp\
    1070                                           ./modules/AverageOntoPartitionx/AverageOntoPartitionx.h
     1052                                           ./objects/DakotaPlugin.cpp\
     1053                                           ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.h\
     1054                                           ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp\
     1055                                           ./modules/DakotaResponsesx/DakotaResponsesx.h\
     1056                                           ./modules/DakotaResponsesx/DakotaResponsesx.cpp\
     1057                                           ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.h\
     1058                                           ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.cpp\
     1059                                           ./modules/AverageOntoPartitionx/AverageOntoPartitionx.cpp\
     1060                                           ./modules/AverageOntoPartitionx/AverageOntoPartitionx.h\
     1061                                           ./modules/Dakotax/Dakotax.h\
     1062                                           ./modules/Dakotax/Dakotax.cpp\
     1063                                           ./modules/Dakotax/DakotaMPI_Bcast.cpp\
     1064                                           ./modules/Dakotax/DakotaFree.cpp\
     1065                                           ./modules/Dakotax/SpawnCore.cpp\
     1066                                           ./modules/Dakotax/SpawnCoreParallel.cpp\
     1067                                           ./modules/Dakotax/DescriptorIndex.cpp\
     1068                                           ./modules/AverageOntoPartitionx/AverageOntoPartitionx.cpp\
     1069                                           ./modules/ModelProcessorx/Qmu/CreateParametersQmu.cpp\
     1070                                           ./modules/AverageOntoPartitionx/AverageOntoPartitionx.h
    10711071endif
    10721072#}}}
  • issm/trunk/src/c/objects/Loads/Icefront.cpp

    r9777 r9785  
    340340        /*Just branch to the correct element icefront vector generator, according to the type of analysis we are carrying out: */
    341341        switch(analysis_type){
     342                #ifdef _HAVE_DIAGNOSTIC_
    342343                case DiagnosticHorizAnalysisEnum:
    343344                        pe=CreatePVectorDiagnosticHoriz();
    344345                        break;
     346                #endif
     347                #ifdef _HAVE_CONTROL_
    345348                case AdjointHorizAnalysisEnum:
    346349                        pe=CreatePVectorAdjointHoriz();
    347350                        break;
     351                #endif
    348352                default:
    349353                        _error_("analysis %i (%s) not supported yet",analysis_type,EnumToStringx(analysis_type));
     
    429433
    430434/*Icefront numerics: */
     435#ifdef _HAVE_DIAGNOSTIC_
    431436/*FUNCTION Icefront::CreatePVectorDiagnosticHoriz {{{1*/
    432437ElementVector* Icefront::CreatePVectorDiagnosticHoriz(void){
     
    449454                        _error_("Icefront type %s not supported yet",EnumToStringx(type));
    450455        }
    451 }
    452 /*}}}*/
    453 /*FUNCTION Icefront::CreatePVectorAdjointHoriz {{{1*/
    454 ElementVector* Icefront::CreatePVectorAdjointHoriz(void){
    455 
    456         /*No load vector applied to the adjoint*/
    457         return NULL;
    458456}
    459457/*}}}*/
     
    536534}
    537535/*}}}*/
     536#endif
     537#ifdef _HAVE_CONTROL_
     538/*FUNCTION Icefront::CreatePVectorAdjointHoriz {{{1*/
     539ElementVector* Icefront::CreatePVectorAdjointHoriz(void){
     540
     541        /*No load vector applied to the adjoint*/
     542        return NULL;
     543}
     544/*}}}*/
     545#endif
    538546#ifdef _HAVE_THREED_
    539547/*FUNCTION Icefront::CreatePVectorDiagnosticMacAyeal3d{{{1*/
  • issm/trunk/src/c/objects/Loads/Icefront.h

    r9777 r9785  
    8080                /*}}}*/
    8181                /*Load management: {{{1*/
     82                void  GetDofList(int** pdoflist,int approximation_enum,int setenum);
     83                void GetSegmentNormal(double* normal,double xyz_list[2][3]);
     84                void GetQuadNormal(double* normal,double xyz_list[4][3]);
     85                #ifdef _HAVE_CONTROL_
    8286                ElementVector* CreatePVectorAdjointHoriz(void);
     87                #endif
     88                #ifdef _HAVE_DIAGNOSTIC_
    8389                ElementVector* CreatePVectorDiagnosticHoriz(void);
    8490                ElementVector* CreatePVectorDiagnosticMacAyeal2d(void);
     91                #endif
    8592        #ifdef _HAVE_THREED_
    8693                ElementVector* CreatePVectorDiagnosticMacAyeal3d(void);
     
    8895                ElementVector* CreatePVectorDiagnosticStokes(void);
    8996            #endif
    90                 void  GetDofList(int** pdoflist,int approximation_enum,int setenum);
    91                 void GetSegmentNormal(double* normal,double xyz_list[2][3]);
    92                 void GetQuadNormal(double* normal,double xyz_list[4][3]);
    9397                /*}}}*/
    9498};
Note: See TracChangeset for help on using the changeset viewer.