Use Petsc (C Version) On Blue Gene

Environment Variables

Set the environment variables in ~/.bashrc to have

export PETSC_ARCH=linux-gnu-c-opt
export PETSC_DIR=/gpfs/bglscratch/pi/sjin/src/petsc-dev-mpixlc

Makefile

Here is a sample Makefile

OBJ= main.o 
#include ${PETSC_DIR}/bmake/common/base
include ${PETSC_DIR}/conf/base

fcpu: ${OBJ}
        ${CLINKER} -o $@ $^ ${PETSC_DM_LIB} ${PETSC_KSP_LIB}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License