Changeset 825 for codes/icosagcm/devel/Python/test
- Timestamp:
- 04/30/19 18:14:37 (5 years ago)
- Location:
- codes/icosagcm/devel/Python/test
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/test/py/Baroclinic_3D_ullrich.py
r806 r825 30 30 INFO, DEBUG, DEBUG_ALL, ERROR = log_master.info, log_master.debug, log_world.debug, log_world.error 31 31 32 from dynamico import unstructured as unst 32 from dynamico.dev import unstructured as unst 33 from dynamico.dev import meshes 34 from dynamico.dev import xios 35 from dynamico.dev import precision as prec 33 36 from dynamico import dyn 34 37 from dynamico import time_step 35 38 from dynamico import DCMIP 36 from dynamico import meshes37 39 from dynamico import maps 38 from dynamico import xios39 from dynamico import precision as prec40 40 from dynamico.kernels import grad, curl, div, KE 41 41 from dynamico.LAM import Davies -
codes/icosagcm/devel/Python/test/py/RSW2_MPAS_W02.py
r807 r825 25 25 26 26 INFO('Loading DYNAMICO modules ...') 27 from dynamico import unstructured as unst27 from dynamico.dev import unstructured as unst 28 28 from dynamico.dev.meshes import MPAS_Format, Unstructured_PMesh as PMesh, Local_Mesh as Mesh 29 29 from dynamico.dev import meshes -
codes/icosagcm/devel/Python/test/py/dump_partition.py
r812 r825 16 16 17 17 args = getargs.parse() 18 for arg in vars(args): print arg, getattr(args, arg) 18 19 19 20 log_master, log_world = getargs.getLogger() … … 29 30 30 31 INFO('Loading DYNAMICO modules ...') 31 from dynamico import unstructured as unst32 from dynamico.dev import unstructured as unst 32 33 from dynamico.dev.meshes import MPAS_Format, Unstructured_PMesh as PMesh, Local_Mesh as Mesh 33 34 from dynamico.dev import meshes … … 140 141 ("primal_own_deg","f8",self._mesh.primal_own_deg), 141 142 ("primal_own_glo","f8",self._mesh.primal_own_glo), 142 ("primal_own_loc","f8",self._mesh.primal_own_loc), 143 ("dual_own_loc","f8",self._mesh.dual_own_loc) ]) 143 ("primal_own_loc","f8",self._mesh.primal_own_loc) ]) 144 144 145 145 self.create_vars(f,("primal_cell","primal_edge_or_vertex"), … … 156 156 ("lat_v","f8",self._mesh.lat_v), 157 157 ("ref_lat_v","f8",self._mesh.ref_lat_v), 158 ("vertices_V1","f8",self._mesh.vertices_V1) ]) 158 ("vertices_V1","f8",self._mesh.vertices_V1), 159 ("dual_own_loc","f8",self._mesh.dual_own_loc) ]) 159 160 160 161 self.create_vars(f,("dual_cell","dual_edge_or_vertex"), -
codes/icosagcm/devel/Python/test/py/partition.py
r760 r825 1 1 print 'Starting' 2 3 from dynamico import meshes 4 from dynamico import parallel 5 from dynamico.dev import unstructured as unst 6 from dynamico import maps 7 from dynamico.parmetis import partition_graph 2 8 3 9 from mpi4py import MPI … … 7 13 8 14 #from dynamico import partition 9 from dynamico import parallel, meshes10 from dynamico import unstructured as unst11 15 12 16 import math as math … … 46 50 part = 0*xadj_loc[0:-1]; 47 51 48 unst.ker.dynamico_partition_graph(mpi_rank, mpi_size, vtxdist, xadj_loc, adjncy_loc, 4, part) 52 # unst.ker.dynamico_partition_graph(mpi_rank, mpi_size, vtxdist, xadj_loc, adjncy_loc, 4, part) 53 partition_graph(comm, vtxdist, xadj_loc, adjncy_loc, part, nparts=4) 49 54 50 #for i in range(len(part)):51 #print 'vertex', i+idx_start, 'proc', part[i]55 for i in range(len(part)): 56 print 'vertex', i+idx_start, 'proc', part[i] 52 57 53 58 #-----------------------------------------------------------------------------# … … 84 89 def coriolis(lon,lat): return 0.*lat 85 90 llm, nqdyn, radius = 1,1,1. 86 lmesh = meshes.Local_Mesh(pmesh, llm, nqdyn, radius, coriolis) 91 planet = maps.SphereMap(radius, 0.) 92 lmesh = meshes.Local_Mesh(pmesh, llm, nqdyn, planet) 87 93 88 94 (primal_deg, primal_vertex, dim_vertex, dim_cell, cell_owner, -
codes/icosagcm/devel/Python/test/py/write_Cartesian_mesh.py
r807 r825 14 14 15 15 args = getargs.parse() 16 for arg in vars(args): print arg, getattr(args, arg) 16 17 17 from dynamico.meshes import zeros18 18 from dynamico import meshes 19 19 import numpy as np -
codes/icosagcm/devel/Python/test/python.sh
r804 r825 21 21 shift 22 22 rm -f xios_client*.* 23 mpirun - np $NB_MPI python -u $* 2>&1 | tee dynamico.log23 mpirun --mca mpi_warn_on_fork 0 -np $NB_MPI python -u $* 2>&1 | tee dynamico.log 24 24 } 25 25 … … 29 29 cd $DYNAMICO_ROOT 30 30 31 cp -i -u -r Python/dynamico/* lib/dynamico/ 31 cp -i -u Python/dynamico/*.py lib/dynamico/ 32 cp -i -u Python/dynamico/dev/*.py lib/dynamico/dev/ 32 33 33 34 . arch.env
Note: See TracChangeset
for help on using the changeset viewer.