Changeset 28258
- Timestamp:
- 05/07/24 10:23:49 (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/GiaDeflectionCorex/GiaDeflectionCorex.cpp
r27726 r28258 5 5 */ 6 6 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 7 13 #include "./GiaDeflectionCorex.h" 8 9 14 #include "../../classes/classes.h" 10 15 #include "../../shared/shared.h" … … 12 17 #include "../InputUpdateFromConstantx/InputUpdateFromConstantx.h" 13 18 19 #ifdef _HAVE_AD_ 20 void GiaDeflectionCorex( IssmDouble* pwi, IssmDouble* pdwidt, GiaDeflectionCoreArgs* arguments){ 21 _error_("Not compiled with AD as this function requires Fortran"); 22 } 23 #else 14 24 /*External blocks: {{{*/ 15 25 struct blockp{ … … 44 54 void GiaDeflectionCorex( IssmDouble* pwi, IssmDouble* pdwidt, GiaDeflectionCoreArgs* arguments){ 45 55 46 /*Recover material parameters and loading history: see GiaDeflectionCoreArgs for more details {{{*/56 /*Recover material parameters and loading history: see GiaDeflectionCoreArgs for more details*/ 47 57 IssmDouble ri = arguments->ri; //radial distance from center of disk to vertex i 48 58 IssmDouble re = arguments->re; //radius of disk … … 62 72 IssmDouble yts = arguments->yts; 63 73 64 /*}}}*/65 66 74 /*Modify inputs to match naruse code: */ 67 75 int Ntime=numtimes; // number of times with load history … … 69 77 int Ntimp=Ntime+1; // Ntime+1 : for evaluation time 70 78 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:*/ 72 80 /*Now, let's set pset from the data that we got in input to GiaDeflectionCorex: */ 73 81 blockp_.pset[0]=reCast<IssmPDouble>(lithosphere_thickness); … … 113 121 114 122 } 123 #endif
Note:
See TracChangeset
for help on using the changeset viewer.