1 import FlexpartExecutable
as Fexec
5 src_distro =
'/tmp/fpsrc'
7 makefile =
'makefile.gfs_gfortran'
8 exec_name =
'FLEXPART_GFS_GFORTRAN'
12 exec_obj = Fexec.FlexpartExecutable(srcdir=src_distro, destdir=destdir,
14 executable_name=exec_name)
16 except Exception
as e:
17 print 'Bad instantiation: ' + str(e)
21 print 'Executable exists: ' + str(exec_obj.executable_exists())
23 success = exec_obj.compile_it()
25 print 'Compile success: ' + str(success)
26 print 'Executable exists: ' + str(exec_obj.executable_exists())