source: issm/oecreview/Archive/12678-13393/ISSM-13069-13070.diff@ 21726

Last change on this file since 21726 was 13394, checked in by Mathieu Morlighem, 13 years ago

Added 12678-13393

File size: 2.3 KB
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/test/Par/SquareShelfConstrained.py

     
    11from numpy import *
    22from verbose import *
    33import scipy.io as matio
    4 import InterpFromMeshToMesh2d as im
    5 from   paterson import  *
     4from InterpFromMeshToMesh2d import InterpFromMeshToMesh2d
     5from paterson import  *
    66from SetIceShelfBC import *
    77import inspect
     8import os.path
    89
    910#Start defining model parameters here
    1011#Geometry
     
    2829index=mat['index'].astype(float)
    2930index=reshape(index.T,(len(index),3),order='F')
    3031
    31 md.initialization.vx = im.InterpFromMeshToMesh2d(index, x, y, vx, md.mesh.x, md.mesh.y)
    32 md.initialization.vy = im.InterpFromMeshToMesh2d(index, x, y, vy, md.mesh.x, md.mesh.y)
     32[md.initialization.vx] = InterpFromMeshToMesh2d(index, x, y, vx, md.mesh.x, md.mesh.y)
     33[md.initialization.vy] = InterpFromMeshToMesh2d(index, x, y, vy, md.mesh.x, md.mesh.y)
    3334md.initialization.vz = zeros(md.mesh.numberofvertices)
    3435md.initialization.pressure = zeros(md.mesh.numberofvertices)
    3536#Materials
     
    6162md = SetIceShelfBC(md)
    6263#Change name so that no tests have the same name
    6364if len(inspect.stack()) > 2:
    64     md.miscellaneous.name = inspect.stack()[2][1].split('.')[0]
     65        md.miscellaneous.name = os.path.basename(inspect.stack()[2][1]).split('.')[0]
    6566
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/test/NightlyRun/test101.py

     
    1313md=parameterize(md,'../Par/SquareShelfConstrained.py')
    1414md=setflowequation(md,'macayeal','all')
    1515md.cluster=generic('name',oshostname(),'np',3)
    16 md.diagnostic.requested_outputs=StressTensorEnum
    17 md=solve(md,DiagnosticSolutionEnum)
     16md.diagnostic.requested_outputs=StressTensorEnum()
     17md=solve(md,DiagnosticSolutionEnum())
    1818
    1919#Fields and tolerances to track changes
    2020field_names     =['Vx','Vy','Vel','Pressure',\
Note: See TracBrowser for help on using the repository browser.