https://github.com/geodynamics/citcoms
Revision 2d995dde2ca3d5963b93ba249187e0d596d5ba3d authored by Thorsten Becker on 24 April 2009, 18:37:49 UTC, committed by Thorsten Becker on 24 April 2009, 18:37:49 UTC
and not just close to the poles. 

precise_strain_rate=on

will select this, default is "odd", i.e. poles only as before.



1 parent 0eb5c37
Raw File
Tip revision: 2d995dde2ca3d5963b93ba249187e0d596d5ba3d authored by Thorsten Becker on 24 April 2009, 18:37:49 UTC
Added flag to allow using the more precise method of computing strain-rates throughout the globe,
Tip revision: 2d995dd
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