source: flexpart.git/flexpart-testing/flextest/test1.py @ 29feaef

FPv9.3.1FPv9.3.1b_testingFPv9.3.2fp9.3.1-20161214-nc4grib2nc4_repair
Last change on this file since 29feaef was 496c607, checked in by Don Morton <Don.Morton@…>, 8 years ago

Initial commit of FPv9.3.1

Currently, this is a clone of snapshot FPv9.3.0

  • Property mode set to 100644
File size: 792 bytes
Line 
1import FlexpartExecutable as Fexec
2
3#src_distro = '/u1/uaf/morton/ctbto/flexpart_distros/FLEXPART_GFS_1p0_2015-03-02'
4
5src_distro = '/tmp/fpsrc'
6destdir = '/tmp/xx'
7makefile = 'makefile.gfs_gfortran'
8exec_name = 'FLEXPART_GFS_GFORTRAN'
9
10good_init = False
11try:
12    exec_obj = Fexec.FlexpartExecutable(srcdir=src_distro, destdir=destdir,
13                                        makefile=makefile, 
14                                        executable_name=exec_name)
15    good_init = True 
16except Exception as e:
17    print 'Bad instantiation: ' + str(e)
18    pass
19
20if good_init:
21    print 'Executable exists: ' + str(exec_obj.executable_exists())
22
23    success = exec_obj.compile_it()
24
25    print 'Compile success: ' + str(success)
26    print 'Executable exists: ' + str(exec_obj.executable_exists())
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG