<gh_stars>0
#!/usr/bin/env python

import sys,os

home = os.environ['NEMO_HOME']
setup = os.environ['NEMO_SETUP']
sys.path.append(os.path.join(home,'scripts'))

from nemo import Makefile

flags = dict(
    PP_N_NODES                  = 8,
    PP_KERNEL_DGFV_QMIN         = 3,
    PP_KERNEL_DGFV_QMAX         = 3,
    PP_MESH_PERIODIC            = 1,
    DO_PROFILING                = 0,
    PP_KERNEL_DGFV_MCFV         = 1,
    PP_NON_CONSERVATIVE_FLUX    = 0,
    PP_KERNEL_DGFV_MCFV_RECO    = 0,
)

mk = Makefile(home,flags)

#kernel = home + '/source/kernel/dgfv/2d'
kernel = home + '/source/kernel/mcfv/2d'

#timedisc = home + '/source/timedisc/rungekutta/ssp/3-3'
#timedisc = home + '/source/timedisc/rungekutta/ssp/4-5'
#timedisc = home + '/source/timedisc/rungekutta/ralston'
timedisc = home + '/source/timedisc/rungekutta/low-storage/4-5'

equations = home + '/source/equations/mhd'

mk.add(equations + '/riemann/rusanov/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/9wave/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/hlle/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/roe/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/hlld/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/hllc/riemann_mod.f90',alias='riemann_inner_mod')

# for d in 'north south west east'.split():
#     mk.add(equations + '/riemann/rusanov/riemann_mod.f90',alias='riemann_{0}_mod'.format(d))

# mk.add(equations + '/two_point/ec/two_point_flux_mod.f90')

mk.add(home + '/source/share_mod.f90')
mk.add(home + '/source/driver_mod.f90')
mk.add(home + '/source/runtime_mod.f90')

mk.add(home + '/source/utils/*.f90')
mk.add(home + '/source/mesh/**.f90')

mk.add(home + '/source/checkpoint/flash/*.f90')

mk.add(equations + '/*.f90')
mk.add(kernel + '/*.f90')
mk.add(timedisc + '/*.f90')

mk.add(setup + '/../_common_/*_mod.f90')
mk.add(setup + '/*_mod.f90')

mk.generate()

#!/usr/bin/env python

import sys,os

home = os.environ['NEMO_HOME']
setup = os.environ['NEMO_SETUP']
sys.path.append(os.path.join(home,'scripts'))

from nemo import Makefile

flags = dict(
    PP_N_NODES                  = 8,
    PP_KERNEL_DGFV_QMIN         = 3,
    PP_KERNEL_DGFV_QMAX         = 3,
    PP_MESH_PERIODIC            = 1,
    DO_PROFILING                = 0,
    PP_KERNEL_DGFV_MCFV         = 1,
    PP_NON_CONSERVATIVE_FLUX    = 0,
    PP_KERNEL_DGFV_MCFV_RECO    = 0,
)

mk = Makefile(home,flags)

#kernel = home + '/source/kernel/dgfv/2d'
kernel = home + '/source/kernel/mcfv/2d'

#timedisc = home + '/source/timedisc/rungekutta/ssp/3-3'
#timedisc = home + '/source/timedisc/rungekutta/ssp/4-5'
#timedisc = home + '/source/timedisc/rungekutta/ralston'
timedisc = home + '/source/timedisc/rungekutta/low-storage/4-5'

equations = home + '/source/equations/mhd'

mk.add(equations + '/riemann/rusanov/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/9wave/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/hlle/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/roe/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/hlld/riemann_mod.f90',alias='riemann_inner_mod')
#mk.add(equations + '/riemann/hllc/riemann_mod.f90',alias='riemann_inner_mod')

# for d in 'north south west east'.split():
#     mk.add(equations + '/riemann/rusanov/riemann_mod.f90',alias='riemann_{0}_mod'.format(d))

# mk.add(equations + '/two_point/ec/two_point_flux_mod.f90')

mk.add(home + '/source/share_mod.f90')
mk.add(home + '/source/driver_mod.f90')
mk.add(home + '/source/runtime_mod.f90')

mk.add(home + '/source/utils/*.f90')
mk.add(home + '/source/mesh/**.f90')

mk.add(home + '/source/checkpoint/flash/*.f90')

mk.add(equations + '/*.f90')
mk.add(kernel + '/*.f90')
mk.add(timedisc + '/*.f90')

mk.add(setup + '/../_common_/*_mod.f90')
mk.add(setup + '/*_mod.f90')

mk.generate()
#!/usr/bin/env python #kernel = home + '/source/kernel/dgfv/2d' #timedisc = home + '/source/timedisc/rungekutta/ssp/3-3' #timedisc = home + '/source/timedisc/rungekutta/ssp/4-5' #timedisc = home + '/source/timedisc/rungekutta/ralston' #mk.add(equations + '/riemann/9wave/riemann_mod.f90',alias='riemann_inner_mod') #mk.add(equations + '/riemann/hlle/riemann_mod.f90',alias='riemann_inner_mod') #mk.add(equations + '/riemann/roe/riemann_mod.f90',alias='riemann_inner_mod') #mk.add(equations + '/riemann/hlld/riemann_mod.f90',alias='riemann_inner_mod') #mk.add(equations + '/riemann/hllc/riemann_mod.f90',alias='riemann_inner_mod') # for d in 'north south west east'.split(): #     mk.add(equations + '/riemann/rusanov/riemann_mod.f90',alias='riemann_{0}_mod'.format(d)) # mk.add(equations + '/two_point/ec/two_point_flux_mod.f90')