Exemplo n.º 1
0
                #f.write_record(farray.dy)
                #f.write_record(farray.dz)
                #if hasattr(farray,'deltay'):
                #    f.write_record(farray.deltay)
                if not persist == None:
                    for pers in persist:
                        f.write_record(pers[0])
                        f.write_record(pers[1])
                f.close()


#set of persistent variables used by interstellar, listed in record_types.h
#if required replace pc.pers with your list in local_remesh.py below
pers = [(253, 0.0), (254, 0.0), (255, 0.0), (256, 0.0), (257, 1), (258, 1),
        (260, 0.0), (261, 0.0)]
""" Example of use to create remesh of mature_run on grid 32x32x64 on 1x2x4
    processors to new_run on grid 40x40x80 on 2x2x4 processors
    > cd /path/to/mature_run
    > pc_newrun /path/to/new_run
    > cd /path/to/new_run
    > vi src/cparam.local
    edit the file to the new grid and processor layout
    > vi start.in
    edit xyz0 and xyz1 or Lxyz if the dimensions of the box are to change
    at this stage do not add new physics, although this can be done after remesh
    > pc_build
    > pc_run start
    > vi local_remesh.py
file to contain:

import pencil as pc
Exemplo n.º 2
0
                f.close()

#set of persistent variables used by interstellar, listed in record_types.h
#if required replace pc.pers with your list in local_remesh.py below 
pers=[
      (253, 0.0), 
      (254, 0.0), 
      (255, 0.0), 
      (256, 0.0), 
      (257,   1), 
      (258,   1), 
      (260, 0.0), 
      (261, 0.0) 
     ]

""" Example of use to create remesh of mature_run on grid 32x32x64 on 1x2x4
    processors to new_run on grid 40x40x80 on 2x2x4 processors
    > cd /path/to/mature_run
    > pc_newrun /path/to/new_run
    > cd /path/to/new_run
    > vi src/cparam.local
    edit the file to the new grid and processor layout
    > vi start.in
    edit xyz0 and xyz1 or Lxyz if the dimensions of the box are to change
    at this stage do not add new physics, although this can be done after remesh
    > pc_build
    > pc_run start
    > vi local_remesh.py
file to contain:

import pencil as pc