[FLASH-USERS] looking for help

Dean Townsley Dean.M.Townsley at ua.edu
Wed Jun 15 14:44:24 EDT 2011


Hi Zhang,

It looks like your compiler flags are probably not appropriate for your
compiler.

Assuming that you are using a gnu compiler stack (i.e. gfortran) the
flags I use are:

FFLAGS_OPT = -c -O3 -fdefault-real-8 -fdefault-double-8
-ffree-line-length-none
FFLAGS_DEBUG = -g -Warray-bounds -c -fdefault-real-8 -fdefault-double-8
-ffree-line-length-non
e
FFLAGS_TEST = -c -fdefault-real-8 -fdefault-double-8 -ffree-line-length-none

These are basically the same as those in the
sites/Prototypes/Linux/Makefile.h.gfortran file included with the
distribution. If you are using gnu compilers, you should take that as
your starting point for getting a working Makefile.h rather than the
plain sites/Prototypes/Linux/Makefile.h one.

I hope that helps.

Dean

On 06/14/2011 10:14 PM, Zhang Chao wrote:
> Dear all,
> I am new to the flash code. when I follow the user's guide. I met lots
> of questions.
> First, when I type "./setup Sedov -auto", "cd object" and "gmake", the
> error came out
> [walli at localhost object]$ gmake
> rm -f reorder.sh
> /opt/software/mpich2-gnu/bin/mpif90 -c -O2 --tp4 -CcdRR8
> -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2
> ut_interpolationInterface.F90
> gfortran: unrecognized option '-CcdRR8'
> cc1: error: unrecognized command line option "-ftp4"
> gmake: *** [ut_interpolationInterface.o] Error 1
> a part of my Makefile.h is that:
> #----------------------------------------------------------------------------
> # Set the HDF/HDF5 library paths -- these need to be updated for your
> system
> #----------------------------------------------------------------------------
>
> HDF5path = /opt/hdf-1.6.5
> MPIpath = /opt/software/mpich2-gnu
> PAPI_PATH =
> PAPI_FLAGS =
> ZLIB_PATH =
> NCMPI_PATH = /opt/parallel-netcdf-1.0.2
> MPE_PATH =
> #----------------------------------------------------------------------------
> # Compiler and linker commands
> #
> # We use the f90 compiler as the linker, so some C libraries may
> explicitly
> # need to be added into the link line.
> #----------------------------------------------------------------------------
> FCOMP = ${MPIpath}/bin/mpif90
> CCOMP = gcc
> CPPCOMP = gcc
> LINK = ${MPIpath}/bin/mpif90
>
> # pre-processor flag
>
> PP = -D
> FFLAGS_OPT = -c -O2 --tp4 -CcdRR8
> FFLAGS_DEBUG = -c -g --trace --trap --chk[aes] -CcdRR8
> FFLAGS_TEST = -c -CcdRR8
> should I change the "FFLAGS_OPT, FFLAGS_DEBUT, FFLAGS_TEST"?
> I really don't know how to do this. Can anybody help me?
> Best wishes,
> Zhang Chao



More information about the flash-users mailing list