Changeset 14814


Ignore:
Timestamp:
04/30/13 12:25:28 (12 years ago)
Author:
Eric.Larour
Message:

CHG: starting with dynamic allocation of load history. Need to transfer dynamic memory into the fortran kernels.

File:
1 edited

Legend:

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

    r14807 r14814  
    1414#include "../InputUpdateFromConstantx/InputUpdateFromConstantx.h"
    1515
    16 #define Nrsl 1
    17 #define N3G 1
    18 #define Nafter 1
    1916#define Ntime 2
    2017#define Ntimp 3
     
    7774        /*constant: */
    7875        int idisk=1; // disk #
     76        IssmDouble yts;
    7977
    8078        /*coming from the model structure, runtime configurable:*/
     
    8684        IssmDouble ri; //radial distance from center of disk to vertex  i
    8785        IssmDouble re; //radius of disk
    88         IssmDouble current_he; //thickness at current time
    8986        IssmDouble* hes; //loading history (in ice thickness)
    9087        IssmDouble* times; //loading history times
     
    111108        ri=arguments->ri;
    112109        re=arguments->re;
    113         current_he=arguments->current_he;
    114110        hes=arguments->hes;
    115111        times=arguments->times;
     
    126122        irate=arguments->irate;
    127123        iedge=arguments->iedge;
    128 
    129         //printf("%g %g %g %i %g %g %g %g %g %g %g %g %i\n", ri,re,current_he,numtimes,currenttime,lithosphere_shear_modulus,lithosphere_density,mantle_shear_modulus,mantle_viscosity, mantle_density,lithosphere_thickness,rho_ice,disk_id);
     124        yts=arguments->yts;
    130125
    131126        /*}}}*/
     
    147142     
    148143        /*loading history: */
    149         blocky_.zhload[0]=current_he;
    150         blocky_.zhload[1]=current_he;
     144        blocky_.zhload[0]=hes[1];
     145        blocky_.zhload[1]=hes[numtimes-1];
    151146
    152147        /*times: */
    153         blockt_.time[0]=1.e-4;    // in kyr
     148        blockt_.time[0]=times[1]/1000.0/yts;    // in kyr
    154149        blockt_.time[1]=2500e+0;  // in kyr
    155         blockt_.time[2]=2400e+0;  // control this for benchmark experiments
     150        blockt_.time[2]=times[numtimes-1]/1000.0/yts;  // control this for benchmark experiments
    156151
    157152        /*irate: */
     
    162157        /*}}}*/
    163158
    164        
    165159        /*Call distme driver: */
    166160        distme_(&idisk,&iedge);
Note: See TracChangeset for help on using the changeset viewer.