Changeset 28258


Ignore:
Timestamp:
05/07/24 10:23:49 (11 months ago)
Author:
Mathieu Morlighem
Message:

NEW: shield Gia code if AD is active

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/GiaDeflectionCorex/GiaDeflectionCorex.cpp

    r27726 r28258  
    55 */
    66
     7#ifdef HAVE_CONFIG_H
     8   #include <config.h>
     9#else
     10#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
     11#endif
     12
    713#include "./GiaDeflectionCorex.h"
    8 
    914#include "../../classes/classes.h"
    1015#include "../../shared/shared.h"
     
    1217#include "../InputUpdateFromConstantx/InputUpdateFromConstantx.h"
    1318
     19#ifdef _HAVE_AD_
     20void GiaDeflectionCorex( IssmDouble* pwi, IssmDouble* pdwidt, GiaDeflectionCoreArgs* arguments){
     21        _error_("Not compiled with AD as this function requires Fortran");
     22}
     23#else
    1424/*External blocks: {{{*/
    1525struct blockp{
     
    4454void GiaDeflectionCorex( IssmDouble* pwi, IssmDouble* pdwidt, GiaDeflectionCoreArgs* arguments){
    4555
    46         /*Recover material parameters and loading history: see GiaDeflectionCoreArgs for more details {{{*/
     56        /*Recover material parameters and loading history: see GiaDeflectionCoreArgs for more details*/
    4757        IssmDouble  ri                        = arguments->ri;                        //radial distance from center of disk to vertex i
    4858        IssmDouble  re                        = arguments->re;                        //radius of disk
     
    6272        IssmDouble  yts                       = arguments->yts;
    6373
    64         /*}}}*/
    65 
    6674        /*Modify inputs to match naruse code: */
    6775        int Ntime=numtimes; // number of times with load history
     
    6977        int Ntimp=Ntime+1; // Ntime+1 : for evaluation time
    7078
    71         /*Prepare block inputs for fortran distme and what0 routines of the naruse code: {{{*/
     79        /*Prepare block inputs for fortran distme and what0 routines of the naruse code:*/
    7280        /*Now, let's set pset from the data that we got in input to GiaDeflectionCorex: */
    7381        blockp_.pset[0]=reCast<IssmPDouble>(lithosphere_thickness);
     
    113121
    114122}
     123#endif
Note: See TracChangeset for help on using the changeset viewer.