Ignore:
Timestamp:
10/24/19 18:27:01 (5 years ago)
Author:
dubos
Message:

devel/Python : update reorder.py and fix C syntax of partition.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/test/py/reorder.py

    r779 r986  
     1#------------ Read command-line arguments ----------# 
     2from dynamico import getargs 
     3getargs.add("--grid", type=int, default=2562, 
     4                    help="number of primal cells in MPAS mesh") 
     5args = getargs.parse() 
     6grid = args.grid 
     7 
     8#------------- Start --------------# 
    19print 'Loading DYNAMICO modules ...' 
    2 from dynamico.meshes import morton_index, key_to_perm, reorder_indices, reorder_values, MPAS_Format, Unstructured_Mesh 
     10from dynamico.meshes import key_to_perm, reorder_indices, reorder_values, MPAS_Format, Unstructured_Mesh 
     11from dynamico.partition import morton_index 
    312print '...Done' 
    413import numpy as np 
     
    716import time 
    817 
    9 #------------ Read command-line arguments ----------# 
    10  
    11 import argparse 
    12 parser = argparse.ArgumentParser() 
    13 parser.add_argument("-n", type=int, default=2562, 
    14                     help="number of primal cells in MPAS mesh") 
    15 args = parser.parse_args() 
    16 grid = args.n 
    1718 
    1819#-------------- read MPAS mesh ----------------# 
Note: See TracChangeset for help on using the changeset viewer.