Changeset 8385


Ignore:
Timestamp:
05/20/11 21:09:00 (14 years ago)
Author:
Mathieu Morlighem
Message:

trunk: TAO successfully initialized

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/modules.h

    r8330 r8385  
    1 /*! \file issm.h:
     1/*! \file modules.h:
    22 *  \brief header file for all the ISSM modules
    33 */
  • issm/trunk/src/c/solutions/controltao_core.cpp

    r8285 r8385  
    22 * \brief: core of the control solution
    33 */
    4 #ifdef HAVE_CONFIG_H
    5 #include "config.h"
    6 #else
    7 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
    8 #endif
    9 
    10 #include "../toolkits/toolkits.h"
    11 #include "../objects/objects.h"
    12 #include "../shared/shared.h"
    13 #include "../EnumDefinitions/EnumDefinitions.h"
    14 #include "./solutions.h"
    15 #include "../modules/modules.h"
    16 #include "../include/include.h"
    17 #include "../solvers/solvers.h"
    18 
     4#include "../issm.h"
    195#ifdef _HAVE_TAO_
    206#include "tao.h"
     
    5541        double* J=NULL;
    5642
    57         printf("I am in TAO!!\n");
    58         TaoInitialize(0,0,0,0);
     43#ifdef _HAVE_TAO_
     44        int argc;
     45        char **args;
     46        PetscGetArgs(&argc,&args);
     47        int ierr=TaoInitialize(&argc,&args,(char*)0,"");
     48        if(ierr) _error_("Could not initialize Tao");
     49#endif
    5950
    6051        /*Recover parameters used throughout the solution:{{{1*/
Note: See TracChangeset for help on using the changeset viewer.