Changeset 662


Ignore:
Timestamp:
06/01/09 09:59:30 (16 years ago)
Author:
Eric.Larour
Message:

Conditional Dakota compilation

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

Legend:

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

    r651 r662  
    295295                                        ./objects/Friction.h\
    296296                                        ./objects/Friction.cpp\
     297                                        ./objects/DakotaPlugin.h\
     298                                        ./objects/DakotaPlugin.cpp\
    297299                                        ./objects/Node.h\
    298300                                        ./objects/Node.cpp\
     
    542544                                        ./parallel/SpawnCore.cpp\
    543545                                        ./parallel/ProcessResults.cpp\
     546                                        ./parallel/qmu.cpp\
     547                                        ./parallel/DakotaResponses.cpp\
    544548                                        ./parallel/OutputResults.cpp
    545549
  • issm/trunk/src/c/objects/DakotaPlugin.cpp

    r586 r662  
    22 */
    33
    4 #include "DakotaResponse.H"
    5 #include "ParamResponsePair.H"
    6 #include "DakotaPlugin.h"
    7 #include "system_defs.h"
    8 #include "ProblemDescDB.H"
    9 #include "ParallelLibrary.H"
    10 
    11 #include "../shared/shared.h"
    12 #include "../include/macros.h"
    13 #include "../objects/objects.h"
    14 #include "../parallel/parallel.h"
    154
    165#ifdef HAVE_CONFIG_H
     
    209#endif
    2110
     11/*Standard ISSM includes: */
     12#include "../shared/shared.h"
     13#include "../include/macros.h"
     14#include "../objects/objects.h"
     15#include "../parallel/parallel.h"
     16
     17/*Standard includes: */
    2218#include <string>
    2319
     20#ifdef _HAVE_DAKOTA_ //only works if dakota library has been compiled in.
     21
     22//Dakota headers
     23#include "DakotaResponse.H"
     24#include "ParamResponsePair.H"
     25#include "DakotaPlugin.h"
     26#include "system_defs.h"
     27#include "ProblemDescDB.H"
     28#include "ParallelLibrary.H"
    2429
    2530namespace SIM {
     
    9196
    9297} // namespace SIM
     98
     99
     100#endif //only works if dakota library has been compiled in.
  • issm/trunk/src/c/objects/DakotaPlugin.h

    r586 r662  
    88#ifndef DAKOTAPLUGIN_H
    99#define DAKOTAPLUGIN_H
     10
     11
     12#ifdef _HAVE_DAKOTA_ //only works if dakota library has been compiled in.
    1013
    1114#include "DirectApplicInterface.H"
     
    4346} // namespace SIM
    4447
     48#endif //only works if dakota library has been compiled in.
     49
    4550
    4651#endif
  • issm/trunk/src/c/parallel/diagnostic.cpp

    r660 r662  
    103103                /*run qmu analysis: */
    104104                _printf_("calling qmu analysis on diagnostic core:\n");
    105                
    106                 //qmu(qmuinname,qmuoutname,qmuerrname,&femmodels[0],inputs,DiagnosticAnalysisEnum(),NoneAnalysisEnum());
     105       
     106                #ifdef _HAVE_DAKOTA_
     107                qmu(qmuinname,qmuoutname,qmuerrname,&femmodels[0],inputs,DiagnosticAnalysisEnum(),NoneAnalysisEnum());
     108                #else
     109                throw ErrorException(__FUNCT__," Dakota not present, cannot do qmu!");
     110                #endif
    107111        }
    108112
  • issm/trunk/src/c/parallel/qmu.cpp

    r659 r662  
    1212#define __FUNCT__ "qmu"
    1313
     14#include "../objects/DakotaPlugin.h"
     15#include "../shared/shared.h"
     16#include "../include/macros.h"
     17#include "parallel.h"
     18
     19
     20#ifdef _HAVE_DAKOTA_ //only works if dakota library has been compiled in.
     21
    1422#include "ParallelLibrary.H"
    1523#include "ProblemDescDB.H"
     
    1826#include "DakotaInterface.H"
    1927
    20 #include "../objects/DakotaPlugin.h"
    21 #include "../shared/shared.h"
    22 #include "../include/macros.h"
    23 #include "parallel.h"
    2428
    2529void qmu(const char* dakota_input_file,const char* dakota_output_file,const char* dakota_error_file, FemModel* femmodels,ParameterInputs* inputs,int analysis_type,int sub_analysis_type){
     
    9498        }
    9599}
     100
     101#endif //only works if dakota library has been compiled in.
     102
Note: See TracChangeset for help on using the changeset viewer.