https://github.com/geodynamics/citcoms
Revision 0085e638d888859d800e309088cf4163fabc5d52 authored by Thorsten Becker on 28 February 2009, 21:23:21 UTC, committed by Thorsten Becker on 28 February 2009, 21:23:21 UTC
ic_method_for_flavors=1 but overrides restart settings for tracers. This allows a compositional
restart of a purely thermal run.


1 parent a9ab99d
Raw File
Tip revision: 0085e638d888859d800e309088cf4163fabc5d52 authored by Thorsten Becker on 28 February 2009, 21:23:21 UTC
Added ic_method_for_flavors=2, which works like the ggrd based tracer flavor init method
Tip revision: 0085e63
citcoms_datadir
#!/usr/bin/env python

def get_var():
    # get your username on this machine, and make it upper case
    import os
    var = os.environ.get("USER")
    return var.upper()


# invariant prefix of datadir
prefix = "/scratch/"

# invariant suffix of datadir
suffix = ""

# get the machine-dependent part of datadir
var_path = get_var()

# construct the full string for datadir
print "%s%s%s" % ( prefix, var_path, suffix )
back to top