source: issm/oecreview/Archive/13393-13976/ISSM-13899-13900.diff@ 13980

Last change on this file since 13980 was 13980, checked in by Mathieu Morlighem, 12 years ago

preparing oecreview for 13393-13976'

File size: 22.6 KB
  • ../trunk-jpl/test/NightlyRun/test3005.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from setmask import *
    74from parameterize import *
    85from setflowequation import *
     6from EnumDefinitions import *
    97from solve import *
     8from MatlabFuncs import *
    109
    11 md=triangle(model(),'../Exp/Square.exp',150000)
     10md=triangle(model(),'../Exp/Square.exp',150000.)
    1211md=setmask(md,'all','')
    1312md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1413md=setflowequation(md,'macayeal','all')
    1514md.cluster=generic('name',oshostname(),'np',3)
    16 md.autodiff.isautodiff=true
     15md.autodiff.isautodiff=True
    1716md=solve(md,PrognosticSolutionEnum())
    1817
    19 
    20 # Fields and tolerances to track changes
    21 
     18#Fields and tolerances to track changes
    2219field_names     =['Thickness']
    2320field_tolerances=[1e-13]
    2421field_values=[\
  • ../trunk-jpl/test/NightlyRun/test3019.py

     
     1import numpy
     2from model import *
     3from triangle import *
     4from setmask import *
     5from parameterize import *
     6from setflowequation import *
     7from independent import *
     8from dependent import *
     9from EnumDefinitions import *
     10from solve import *
     11from MatlabFuncs import *
     12
     13#test reverse scalar vs forward vectorial drivers in ADOLC, using the test3009 setup, equivalent to test109 setup.
     14md=triangle(model(),'../Exp/Square.exp',100000.)
     15md=setmask(md,'all','')
     16md=parameterize(md,'../Par/SquareShelfConstrained.py')
     17md=setflowequation(md,'macayeal','all')
     18md.cluster=generic('name',oshostname(),'np',3)
     19
     20md.autodiff.isautodiff=True
     21md.verbose.autodiff=True
     22
     23#first run scalar reverse mode:
     24md.autodiff.independents=[independent('name','Thickness','type','vertex','nods',md.mesh.numberofvertices)]
     25md.autodiff.dependents=[dependent('name','MaxVel','type','scalar','fos_reverse_index',1)]
     26md.autodiff.driver='fos_reverse'
     27
     28md=solve(md,TransientSolutionEnum())
     29
     30#recover jacobian:
     31jac_reverse=md.results['TransientSolution'][1]['AutodiffJacobian']
     32
     33#now run vectorial forward mode
     34md.autodiff.independents=[independent('name','Thickness','type','vertex','nods',md.mesh.numberofvertices,'fov_forward_indices',numpy.arange(0,md.mesh.numberofvertices))]
     35md.autodiff.dependents=[dependent('name','MaxVel','type','scalar')]
     36md.autodiff.driver='fov_forward'
     37
     38md=solve(md,TransientSolutionEnum())
     39
     40#recover jacobian:
     41jac_forward=md.results['TransientSolution'][1]['AutodiffJacobian']
     42
     43#Fields and tolerances to track changes
     44field_names     =['Jac Forward','Jac Reverse','Jac Forward - Reverse']
     45field_tolerances=[1e-13,1e-13,1e-13]
     46field_values=[jac_forward,jac_reverse,jac_forward-jac_reverse]
  • ../trunk-jpl/test/NightlyRun/test3019.m

     
    1818%recover jacobian:
    1919jac_reverse=md.results.TransientSolution(1).AutodiffJacobian;
    2020
    21 
    2221%now run vectorial forward mode
    2322md.autodiff.independents={independent('name','Thickness','type','vertex','nods',md.mesh.numberofvertices,'fov_forward_indices',(1:md.mesh.numberofvertices)')};
    2423md.autodiff.dependents={dependent('name','MaxVel','type','scalar')};
     
    2928%recover jacobian:
    3029jac_forward=md.results.TransientSolution(1).AutodiffJacobian;
    3130
    32 
    3331%Fields and tolerances to track changes
    3432field_names     ={'Jac Forward','Jac Reverse','Jac Forward - Reverse'};
    3533field_tolerances={1e-13,1e-13,1e-13};
  • ../trunk-jpl/test/NightlyRun/test3020.m

     
    77md=parameterize(md,'../Par/SquareShelfConstrained.par');
    88md=setflowequation(md,'macayeal','all');
    99md.cluster=generic('name',oshostname(),'np',3);
    10 md.transient.requested_outputs=[IceVolumeEnum();MaxVelEnum];
     10md.transient.requested_outputs=[IceVolumeEnum();MaxVelEnum()];
    1111md.verbose=verbose('autodiff',true);
    12 md.diagnostic.restol=.000001;
     12md.diagnostic.restol=0.000001;
    1313
    1414%setup autodiff parameters
    1515index=1; %this is the scalar component we are checking against
     
    2323        };
    2424md.autodiff.driver='fos_forward';
    2525
    26 %parameters for the step-wise devivative
    27 delta=.00001;
     26%parameters for the step-wise derivative
     27delta=0.00001;
    2828h1=md.geometry.thickness(index);
    29 h0=h1*(1-delta);
    30 h2=h1*(1+delta);
     29h0=h1*(1.-delta);
     30h2=h1*(1.+delta);
    3131deltaH=(h2-h0);
    3232
    3333%save model:
     
    6262dVdh_an=(V2-V0)/deltaH;
    6363dMaxVdh_an=(MaxV2-MaxV0)/deltaH;
    6464
    65 
    6665%evaluate derivative using ADOLC
    6766md=md2;
    6867md.autodiff.isautodiff=true;
     
    7978disp(sprintf('dV/dh: analytical:  %16.16g\n       using adolc:  %16.16g\n',dVdh_an,dVdh_ad));
    8079disp(sprintf('dMaxV/dh: analytical:  %16.16g\n       using adolc:  %16.16g\n',dMaxVdh_an,dMaxVdh_ad));
    8180
    82 
    8381%Fields and tolerances to track changes
    8482field_names     ={'dV/dh-dV/dh0','dMaxV/dh-dMaxV/dh0'};
    8583field_tolerances={1e-13,1e-13};
  • ../trunk-jpl/test/NightlyRun/test3006.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from meshconvert import *
    74from setmask import *
    85from parameterize import *
    96from setflowequation import *
     7from EnumDefinitions import *
    108from solve import *
     9from MatlabFuncs import *
    1110
    12 md=triangle(model(),'../Exp/Square.exp',150000)
     11md=triangle(model(),'../Exp/Square.exp',150000.)
    1312md=meshconvert(md)
    1413md=setmask(md,'all','')
    1514md=parameterize(md,'../Par/SquareShelfConstrained.py')
     
    1716md.cluster=generic('name',oshostname(),'np',3)
    1817md.prognostic.stabilization=3
    1918md.prognostic.spcthickness=md.geometry.thickness
    20 md.autodiff.isautodiff=true
     19md.autodiff.isautodiff=True
    2120md=solve(md,PrognosticSolutionEnum())
    2221
    23 
    24 # Fields and tolerances to track changes
    25 
     22#Fields and tolerances to track changes
    2623field_names     =['Thickness']
    2724field_tolerances=[1e-13]
    2825field_values=[\
  • ../trunk-jpl/test/NightlyRun/test3001.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from setmask import *
    74from parameterize import *
    85from setflowequation import *
     6from EnumDefinitions import *
    97from solve import *
     8from MatlabFuncs import *
    109
    11 md=triangle(model(),'../Exp/Square.exp',50000)
     10md=triangle(model(),'../Exp/Square.exp',50000.)
    1211md=setmask(md,'all','')
    1312md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1413md=setflowequation(md,'macayeal','all')
    1514md.cluster=generic('name',oshostname(),'np',3)
    1615md.diagnostic.requested_outputs=StressTensorEnum()
    17 md.autodiff.isautodiff=true
     16md.autodiff.isautodiff=True
    1817md=solve(md,DiagnosticSolutionEnum())
    1918
    20 
    21 # Fields and tolerances to track changes
    22 
     19#Fields and tolerances to track changes
    2320field_names     =['Vx','Vy','Vel','Pressure',\
    2421        'StressTensorxx','StressTensoryy','StressTensorxy']
    2522field_tolerances=[1e-13,1e-13,1e-13,1e-13,\
  • ../trunk-jpl/test/NightlyRun/test3015.py

     
     1import numpy
     2import copy
     3from model import *
     4from triangle import *
     5from setmask import *
     6from parameterize import *
     7from setflowequation import *
     8from independent import *
     9from dependent import *
     10from SetIceShelfBC import *
     11from EnumDefinitions import *
     12from solve import *
     13from MatlabFuncs import *
     14
     15#This test runs test3005 with autodiff on, and checks that
     16#the value of the scalar forward difference match a step-wise differential
     17
     18#First configure
     19md=triangle(model(),'../Exp/Square.exp',50000.)
     20md=setmask(md,'all','')
     21md=parameterize(md,'../Par/SquareShelfConstrained.py')
     22md=setflowequation(md,'macayeal','all')
     23md.cluster=generic('name',oshostname(),'np',3)
     24md.prognostic.requested_outputs=IceVolumeEnum()
     25md.verbose=verbose('autodiff',True)
     26
     27#setup autodiff parameters
     28index=0 #this is the scalar component we are checking against
     29md.autodiff.independents=[\
     30        independent('name','Thickness','type','vertex','nods',md.mesh.numberofvertices,'fos_forward_index',index)
     31        ]
     32
     33md.autodiff.dependents=[\
     34        dependent('name','IceVolume','type','scalar')\
     35        ]
     36md.autodiff.driver='fos_forward'
     37
     38#parameters for the step-wise derivative
     39delta=0.001
     40h1=md.geometry.thickness[index]
     41h0=h1*(1.-delta)
     42h2=h1*(1.+delta)
     43deltaH=(h2-h0)
     44
     45#save model
     46md2=copy.deepcopy(md)
     47
     48#evaluate derivative by forward and backward stepping
     49#forward
     50md=copy.deepcopy(md2)
     51md.autodiff.isautodiff=False
     52md.geometry.thickness[index]=h0
     53md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness
     54md.geometry.surface=md.geometry.bed+md.geometry.thickness
     55md=SetIceShelfBC(md)
     56
     57md=solve(md,PrognosticSolutionEnum())
     58V0=md.results['PrognosticSolution'][1]['IceVolume']
     59
     60#backward
     61md=copy.deepcopy(md2)
     62md.autodiff.isautodiff=False
     63md.geometry.thickness[index]=h2
     64md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness
     65md.geometry.surface=md.geometry.bed+md.geometry.thickness
     66md=SetIceShelfBC(md)
     67
     68md=solve(md,PrognosticSolutionEnum())
     69V2=md.results['PrognosticSolution'][1]['IceVolume']
     70
     71#compute resulting derivative
     72dVdh_an=(V2-V0)/deltaH
     73
     74#evaluate derivative using ADOLC
     75md=md2
     76md.autodiff.isautodiff=True
     77md.geometry.thickness[index]=h1
     78md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness
     79md.geometry.surface=md.geometry.bed+md.geometry.thickness
     80md=SetIceShelfBC(md)
     81
     82md=solve(md,PrognosticSolutionEnum())
     83#retrieve directly
     84dVdh_ad=md.results['PrognosticSolution'][1]['AutodiffJacobian']
     85
     86print "dV/dh: analytical:  #16.16g\n       using adolc:  #16.16g\n" % (dVdh_an,dVdh_ad)
     87
     88#Fields and tolerances to track changes
     89field_names     =['dV/dh-dV/dh0']
     90field_tolerances=[1e-13]
     91field_values=[dVdh_ad-dVdh_an]
  • ../trunk-jpl/test/NightlyRun/test3010.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from setmask import *
    74from parameterize import *
    85from setflowequation import *
     6from EnumDefinitions import *
    97from solve import *
     8from MatlabFuncs import *
    109
    11 md=triangle(model(),'../Exp/Square.exp',150000)
     10md=triangle(model(),'../Exp/Square.exp',150000.)
    1211md=setmask(md,'all','')
    1312md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1413md=setflowequation(md,'macayeal','all')
    1514md.cluster=generic('name',oshostname(),'np',3)
    1615md.transient.requested_outputs=IceVolumeEnum()
    1716
    18 
    19 md.autodiff.isautodiff=true
     17md.autodiff.isautodiff=True
    2018md=solve(md,TransientSolutionEnum())
    2119
    22 
    23 # Fields and tolerances to track changes
    24 
     20#Fields and tolerances to track changes
    2521field_names     =['Vx1','Vy1','Vel1','Pressure1','Bed1','Surface1','Thickness1','Volume1','Vx2','Vy2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Volume2','Vx3','Vy3','Vel3','Pressure3','Bed3','Surface3','Thickness3','Volume3']
    2622field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,\
    2723                                                1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,\
  • ../trunk-jpl/test/NightlyRun/test3007.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from setmask import *
    74from parameterize import *
    85from setflowequation import *
     6from EnumDefinitions import *
    97from solve import *
     8from MatlabFuncs import *
    109
    11 md=triangle(model(),'../Exp/Square.exp',150000)
     10md=triangle(model(),'../Exp/Square.exp',150000.)
    1211md=setmask(md,'all','')
    1312md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1413md=setflowequation(md,'macayeal','all')
    1514md.extrude(5,3.)
    1615md.cluster=generic('name',oshostname(),'np',3)
    17 md.autodiff.isautodiff=true
     16md.autodiff.isautodiff=True
    1817md=solve(md,PrognosticSolutionEnum())
    1918
    20 
    21 # Fields and tolerances to track changes
    22 
     19#Fields and tolerances to track changes
    2320field_names     =['Thickness']
    2421field_tolerances=[1e-13]
    2522field_values=[\
  • ../trunk-jpl/test/NightlyRun/test3002.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from setmask import *
    74from parameterize import *
    85from setflowequation import *
     6from EnumDefinitions import *
    97from solve import *
     8from MatlabFuncs import *
    109
    11 md=triangle(model(),'../Exp/Square.exp',180000)
     10md=triangle(model(),'../Exp/Square.exp',180000.)
    1211md=setmask(md,'all','')
    1312md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1413md.extrude(3,2.)
    1514md=setflowequation(md,'macayeal','all')
    1615md.cluster=generic('name',oshostname(),'np',3)
    17 md.autodiff.isautodiff=true
     16md.autodiff.isautodiff=True
    1817md=solve(md,DiagnosticSolutionEnum())
    1918
    20 
    21 # Fields and tolerances to track changes
    22 
     19#Fields and tolerances to track changes
    2320field_names     =['Vx','Vy','Vz','Vel','Pressure']
    2421field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13]
    2522field_values=[\
  • ../trunk-jpl/test/NightlyRun/test3020.py

     
     1import numpy
     2import copy
     3from model import *
     4from triangle import *
     5from setmask import *
     6from parameterize import *
     7from setflowequation import *
     8from independent import *
     9from dependent import *
     10from SetIceShelfBC import *
     11from EnumDefinitions import *
     12from solve import *
     13from MatlabFuncs import *
     14
     15#This test runs test3020 with autodiff on, and checks that
     16#the value of the scalar forward difference match a step-wise differential
     17
     18#First configure
     19md=triangle(model(),'../Exp/Square.exp',150000.)
     20md=setmask(md,'all','')
     21md=parameterize(md,'../Par/SquareShelfConstrained.py')
     22md=setflowequation(md,'macayeal','all')
     23md.cluster=generic('name',oshostname(),'np',3)
     24md.transient.requested_outputs=[IceVolumeEnum(),MaxVelEnum()]
     25md.verbose=verbose('autodiff',True)
     26md.diagnostic.restol=0.000001
     27
     28#setup autodiff parameters
     29index=0 #this is the scalar component we are checking against
     30md.autodiff.independents=[\
     31        independent('name','Thickness','type','vertex','nods',md.mesh.numberofvertices,'fos_forward_index',index)
     32        ]
     33
     34md.autodiff.dependents=[\
     35        dependent('name','IceVolume','type','scalar'),\
     36        dependent('name','MaxVel','type','scalar')\
     37        ]
     38md.autodiff.driver='fos_forward'
     39
     40#parameters for the step-wise derivative
     41delta=0.00001
     42h1=md.geometry.thickness[index]
     43h0=h1*(1.-delta)
     44h2=h1*(1.+delta)
     45deltaH=(h2-h0)
     46
     47#save model:
     48md2=copy.deepcopy(md)
     49
     50#evaluate derivative by forward and backward stepping
     51#forward
     52md=copy.deepcopy(md2)
     53md.autodiff.isautodiff=False
     54md.geometry.thickness[index]=h0
     55md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness
     56md.geometry.surface=md.geometry.bed+md.geometry.thickness
     57md=SetIceShelfBC(md)
     58
     59md=solve(md,TransientSolutionEnum())
     60V0=md.results['TransientSolution'][3]['IceVolume']
     61MaxV0=md.results['TransientSolution'][3]['MaxVel']
     62
     63#backward
     64md=copy.deepcopy(md2)
     65md.autodiff.isautodiff=False
     66md.geometry.thickness[index]=h2
     67md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness
     68md.geometry.surface=md.geometry.bed+md.geometry.thickness
     69md=SetIceShelfBC(md)
     70
     71md=solve(md,TransientSolutionEnum())
     72V2=md.results['TransientSolution'][3]['IceVolume']
     73MaxV2=md.results['TransientSolution'][3]['MaxVel']
     74
     75#compute resulting derivative
     76dVdh_an=(V2-V0)/deltaH
     77dMaxVdh_an=(MaxV2-MaxV0)/deltaH
     78
     79#evaluate derivative using ADOLC
     80md=copy.deepcopy(md2)
     81md.autodiff.isautodiff=True
     82md.geometry.thickness[index]=h1
     83md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness
     84md.geometry.surface=md.geometry.bed+md.geometry.thickness
     85md=SetIceShelfBC(md)
     86
     87md=solve(md,TransientSolutionEnum())
     88#retrieve directly
     89dVdh_ad=md.results['TransientSolution'][1]['AutodiffJacobian'][0]
     90dMaxVdh_ad=md.results['TransientSolution'][1]['AutodiffJacobian'][1]
     91
     92print "dV/dh: analytical:  %16.16g\n       using adolc:  %16.16g\n" % (dVdh_an,dVdh_ad)
     93print "dMaxV/dh: analytical:  %16.16g\n       using adolc:  %16.16g\n" % (dMaxVdh_an,dMaxVdh_ad)
     94
     95#Fields and tolerances to track changes
     96field_names     =['dV/dh-dV/dh0','dMaxV/dh-dMaxV/dh0']
     97field_tolerances=[1e-13,1e-13]
     98field_values=[dVdh_ad-dVdh_an,dMaxVdh_an-dMaxVdh_ad]
  • ../trunk-jpl/test/NightlyRun/test3008.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from setmask import *
    74from parameterize import *
    85from setflowequation import *
     6from EnumDefinitions import *
    97from solve import *
     8from MatlabFuncs import *
    109
    11 md=triangle(model(),'../Exp/Square.exp',180000)
     10md=triangle(model(),'../Exp/Square.exp',180000.)
    1211md=setmask(md,'all','')
    1312md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1413md.extrude(3,1.)
    1514md=setflowequation(md,'macayeal','all')
    1615md.timestepping.time_step=0
    1716md.cluster=generic('name',oshostname(),'np',3)
    18 md.autodiff.isautodiff=true
     17md.autodiff.isautodiff=True
    1918md=solve(md,ThermalSolutionEnum())
    2019
    21 
    22 # Fields and tolerances to track changes
    23 
     20#Fields and tolerances to track changes
    2421field_names     =['Temperature','BasalforcingsMeltingRate']
    2522field_tolerances=[1e-13,1e-13]
    2623field_values=[\
  • ../trunk-jpl/test/NightlyRun/test3015.m

     
    2121        };
    2222md.autodiff.driver='fos_forward';
    2323
    24 %parameters for the step-wise devivative
    25 delta=.001;
     24%parameters for the step-wise derivative
     25delta=0.001;
    2626h1=md.geometry.thickness(index);
    27 h0=h1*(1-delta);
    28 h2=h1*(1+delta);
     27h0=h1*(1.-delta);
     28h2=h1*(1.+delta);
    2929deltaH=(h2-h0);
    3030
    3131%save model:
  • ../trunk-jpl/test/NightlyRun/test3003.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from setmask import *
    74from parameterize import *
    85from setflowequation import *
     6from EnumDefinitions import *
    97from solve import *
     8from MatlabFuncs import *
    109
    11 md=triangle(model(),'../Exp/Square.exp',180000)
     10md=triangle(model(),'../Exp/Square.exp',180000.)
    1211md=setmask(md,'all','')
    1312md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1413md.extrude(3,2.)
    1514md=setflowequation(md,'pattyn','all')
    1615md.cluster=generic('name',oshostname(),'np',3)
    1716md.diagnostic.requested_outputs=StressTensorEnum()
    18 md.autodiff.isautodiff=true
     17md.autodiff.isautodiff=True
    1918md=solve(md,DiagnosticSolutionEnum())
    2019
    21 
    22 # Fields and tolerances to track changes
    23 
     20#Fields and tolerances to track changes
    2421field_names     =['Vx','Vy','Vz','Vel','Pressure',\
    2522        'StressTensorxx','StressTensoryy','StressTensorzz','StressTensorxy','StressTensorxz','StressTensoryz']
    2623field_tolerances=[1e-09,1e-09,1e-09,1e-09,1e-09,\
  • ../trunk-jpl/test/NightlyRun/test3009.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from setmask import *
    74from parameterize import *
    85from setflowequation import *
     6from EnumDefinitions import *
    97from solve import *
     8from MatlabFuncs import *
    109
    11 md=triangle(model(),'../Exp/Square.exp',180000)
     10md=triangle(model(),'../Exp/Square.exp',180000.)
    1211md=setmask(md,'all','')
    1312md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1413md.extrude(3,1.)
     
    1817md.transient.isprognostic=0
    1918md.transient.isthermal=1
    2019md.transient.isgroundingline=0
    21 md.autodiff.isautodiff=true
     20md.autodiff.isautodiff=True
    2221md=solve(md,TransientSolutionEnum())
    2322
    24 
    25 # Fields and tolerances to track changes
    26 
     23#Fields and tolerances to track changes
    2724field_names     =['Temperature','BasalforcingsMeltingRate']
    2825field_tolerances=[1e-13,1e-13]
    2926field_values=[\
  • ../trunk-jpl/test/NightlyRun/test3004.py

     
    1 from MatlabFuncs import *
    21from model import *
    3 from EnumDefinitions import *
    4 import numpy
    52from triangle import *
    63from setmask import *
    74from parameterize import *
    85from setflowequation import *
     6from EnumDefinitions import *
    97from solve import *
     8from MatlabFuncs import *
    109
    11 md=triangle(model(),'../Exp/Square.exp',180000)
     10md=triangle(model(),'../Exp/Square.exp',180000.)
    1211md=setmask(md,'all','')
    1312md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1413md.extrude(3,2.)
    1514md=setflowequation(md,'stokes','all')
    1615md.cluster=generic('name',oshostname(),'np',3)
    17 md.autodiff.isautodiff=true
     16md.autodiff.isautodiff=True
    1817md=solve(md,DiagnosticSolutionEnum())
    1918
    20 
    21 # Fields and tolerances to track changes
    22 
     19#Fields and tolerances to track changes
    2320field_names     =['Vx','Vy','Vz','Vel','Pressure']
    2421field_tolerances=[1e-08,1e-08,1e-07,1e-08,1e-08]
    2522field_values=[\
Note: See TracBrowser for help on using the repository browser.