1#!/usr/bin/python3 2if __name__ == '__main__': 3 import sys 4 import os 5 sys.path.insert(0, os.path.abspath('config')) 6 import configure 7 mpilibdir = os.path.join(os.environ['NMPI_ROOT'],'lib64','ve') 8 configure_options = [ 9 # NEC MPI wrappers (as of version 2.15.0) explicitly list libmpi.a when linking and not -lmpi 10 # our checkSharedLinker configure test fails and PETSc will build static libraries 11 # uncomment the next two lines if you need PETSc as a shared library 12 # '--LDFLAGS=-Wl,-rpath,' + mpilibdir + '-L' + mpilibdir + ' -lmpi', 13 # '--with-shared-libraries=1', 14 '--with-debugging=0', 15 # Need CXX support, and my default installation does not have system g++ 16 '--download-sowing-configure-arguments=CC=ncc CXX=nc++', 17 'PETSC_ARCH=arch-necve', 18 ] 19 configure.petsc_configure(configure_options) 20