Ignore:
Timestamp:
06/07/17 10:50:54 (8 years ago)
Author:
Eric.Larour
Message:

CHG: merged branch back to trunk-jpl 21754.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/branches/trunk-larour-NatGeoScience2016/test/NightlyRun/test213.py

    r21060 r21759  
    11#Test Name: SquareShelfCMBSSA3d
    2 from MatlabFuncs import *
     2
    33from model import *
    4 from numpy import *
     4from socket import gethostname
     5import numpy as np
    56from triangle import *
    67from setmask import *
     
    2122md.inversion.iscontrol=1
    2223md.inversion.control_parameters=['MaterialsRheologyBbar']
    23 md.inversion.min_parameters=10**6*ones((md.mesh.numberofvertices,1))
    24 md.inversion.max_parameters=2.*10**9*ones((md.mesh.numberofvertices,1))
     24md.inversion.min_parameters=10**6*np.ones((md.mesh.numberofvertices))
     25md.inversion.max_parameters=2.*10**9*np.ones((md.mesh.numberofvertices))
    2526md.inversion.nsteps=2
    2627md.inversion.cost_functions=[101]
    27 md.inversion.cost_functions_coefficients=ones((md.mesh.numberofvertices,1))
    28 md.inversion.gradient_scaling=10**7*ones((md.inversion.nsteps,1))
    29 md.inversion.maxiter_per_step=2.*ones((md.inversion.nsteps,1))
    30 md.inversion.step_threshold=0.3*ones((md.inversion.nsteps,1))
     28md.inversion.cost_functions_coefficients=np.ones((md.mesh.numberofvertices))
     29md.inversion.gradient_scaling=10**7*np.ones((md.inversion.nsteps))
     30md.inversion.maxiter_per_step=2.*np.ones((md.inversion.nsteps))
     31md.inversion.step_threshold=0.3*np.ones((md.inversion.nsteps))
    3132md.inversion.vx_obs=md.initialization.vx
    3233md.inversion.vy_obs=md.initialization.vy
    3334
    3435
    35 md.cluster=generic('name',oshostname(),'np',3)
     36md.cluster=generic('name',gethostname(),'np',3)
    3637md=solve(md,'Stressbalance')
    3738
     
    4243field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13]
    4344#field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13]
    44 field_values=[\
    45         md.results.StressbalanceSolution.Gradient1,\
    46         md.results.StressbalanceSolution.J,\
    47         md.results.StressbalanceSolution.MaterialsRheologyBbar,\
    48         md.results.StressbalanceSolution.Pressure,\
    49         md.results.StressbalanceSolution.Vel,\
    50         md.results.StressbalanceSolution.Vx,\
    51         md.results.StressbalanceSolution.Vy,\
    52 ]
     45field_values=[md.results.StressbalanceSolution.Gradient1,
     46                                                        md.results.StressbalanceSolution.J,
     47                                                        md.results.StressbalanceSolution.MaterialsRheologyBbar,
     48                                                        md.results.StressbalanceSolution.Pressure,
     49                                                        md.results.StressbalanceSolution.Vel,
     50                                                        md.results.StressbalanceSolution.Vx,
     51                                                        md.results.StressbalanceSolution.Vy]
Note: See TracChangeset for help on using the changeset viewer.