Revision 4186b9cf8990abc484e5edc76ab70610d2239bea authored by Lorenzo Pattelli on 17 September 2020, 17:01:15 UTC, committed by Lorenzo Pattelli on 23 September 2020, 14:20:05 UTC
1 parent 4c1b3e0
Raw File
__init__.py
import sys

from smuthi.version import __version__

try:
    from mpi4py import MPI
    mpi_comm = MPI.COMM_WORLD
    mpi_rank = mpi_comm.Get_rank()
except:
    mpi_rank = 0


def print_smuthi_header():
    welcome_msg = ("\n" + "*" * 32 + "\n    SMUTHI version " + __version__ + "\n" + "*" * 32 + "\n")
    sys.stdout.write(welcome_msg)
    sys.stdout.flush()


#if mpi_rank == 0:
#    print_smuthi_header()
back to top