https://github.com/geodynamics/citcoms
Revision 15e05e4d8d088429e89c42427a1392f428737625 authored by Rajesh Kommu on 20 August 2014, 19:37:00 UTC, committed by Rajesh Kommu on 20 August 2014, 19:37:00 UTC
1 parent 9f568ea
Raw File
Tip revision: 15e05e4d8d088429e89c42427a1392f428737625 authored by Rajesh Kommu on 20 August 2014, 19:37:00 UTC
completed solve_Ahat_p_fhat_PETSc_Schur implementation
Tip revision: 15e05e4
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