Re: [petsc-users] Makefile change for PETSc3.12.0???

2019-10-02 Thread Danyang Su via petsc-users

On 2019-10-02 11:00 a.m., Balay, Satish wrote:

Can you retry with this fix:

https://gitlab.com/petsc/petsc/commit/3ae65d51d08dba2e118033664acfd64a46c9bf1d

[You can use maint branch for it]

Satish


This works. Thanks.

Danyang



On Wed, 2 Oct 2019, Danyang Su via petsc-users wrote:


Dear All,

I installed PETSc3.12.0 version and got problem in compiling my code (Fortran
and C++). The code and makefile are the same as I used for previous PETSc
version.

The error information seems the make command does not know the compiler
information. I tested this on two linux workstations and both return the same
error.

make: *** No rule to make target '../../usg/math_common.o', needed by 'exe'.
Stop.

The makefile I use is shown below:

#PETSc variables for development version, version V3.6.0 and later
include ${PETSC_DIR}/lib/petsc/conf/variables
include ${PETSC_DIR}/lib/petsc/conf/rules

CFLAGS =
CXXFLAGS = -std=c++11 -O3
CPPFLAGS = -DUSECGAL_NO
FFLAGS = -frounding-math -O3
FPPFLAGS = -DLINUX -DRELEASE -DRELEASE_X64 -DPETSC -DPETSC_HAVE_MUMPS
-DPETSC_HAVE_SUPERLU
CLEANFILES = executable-linux

SRC =./../../

OBJS = $(SRC)usg/math_common.o\
     $(SRC)usg/geometry_definition.o\
     ...
     $(SRC)updtrootdensity.o

exe: $(OBJS) chkopts
     -${FLINKER} $(FFLAGS) $(FPPFLAGS) $(CPPFLAGS) -o executable-linux $(OBJS)
${PETSC_LIB}

Any idea on this?

Thanks,

Danyang



Re: [petsc-users] Makefile change for PETSc3.12.0???

2019-10-02 Thread Balay, Satish via petsc-users
Can you retry with this fix:

https://gitlab.com/petsc/petsc/commit/3ae65d51d08dba2e118033664acfd64a46c9bf1d

[You can use maint branch for it]

Satish

On Wed, 2 Oct 2019, Danyang Su via petsc-users wrote:

> Dear All,
> 
> I installed PETSc3.12.0 version and got problem in compiling my code (Fortran
> and C++). The code and makefile are the same as I used for previous PETSc
> version.
> 
> The error information seems the make command does not know the compiler
> information. I tested this on two linux workstations and both return the same
> error.
> 
> make: *** No rule to make target '../../usg/math_common.o', needed by 'exe'. 
> Stop.
> 
> The makefile I use is shown below:
> 
> #PETSc variables for development version, version V3.6.0 and later
> include ${PETSC_DIR}/lib/petsc/conf/variables
> include ${PETSC_DIR}/lib/petsc/conf/rules
> 
> CFLAGS =
> CXXFLAGS = -std=c++11 -O3
> CPPFLAGS = -DUSECGAL_NO
> FFLAGS = -frounding-math -O3
> FPPFLAGS = -DLINUX -DRELEASE -DRELEASE_X64 -DPETSC -DPETSC_HAVE_MUMPS
> -DPETSC_HAVE_SUPERLU
> CLEANFILES = executable-linux
> 
> SRC =./../../
> 
> OBJS = $(SRC)usg/math_common.o\
>     $(SRC)usg/geometry_definition.o\
>     ...
>     $(SRC)updtrootdensity.o
> 
> exe: $(OBJS) chkopts
>     -${FLINKER} $(FFLAGS) $(FPPFLAGS) $(CPPFLAGS) -o executable-linux $(OBJS)
> ${PETSC_LIB}
> 
> Any idea on this?
> 
> Thanks,
> 
> Danyang
> 


Re: [petsc-users] Makefile change for PETSc3.12.0???

2019-10-02 Thread Matthew Knepley via petsc-users
On Wed, Oct 2, 2019 at 1:54 PM Danyang Su via petsc-users <
petsc-users@mcs.anl.gov> wrote:

> Dear All,
>
> I installed PETSc3.12.0 version and got problem in compiling my code
> (Fortran and C++). The code and makefile are the same as I used for
> previous PETSc version.
>
> The error information seems the make command does not know the compiler
> information. I tested this on two linux workstations and both return the
> same error.
>
> make: *** No rule to make target '../../usg/math_common.o', needed by
> 'exe'.  Stop.
>
> The makefile I use is shown below:
>
> #PETSc variables for development version, version V3.6.0 and later
> include ${PETSC_DIR}/lib/petsc/conf/variables
> include ${PETSC_DIR}/lib/petsc/conf/rules
>
> CFLAGS =
> CXXFLAGS = -std=c++11 -O3
> CPPFLAGS = -DUSECGAL_NO
> FFLAGS = -frounding-math -O3
> FPPFLAGS = -DLINUX -DRELEASE -DRELEASE_X64 -DPETSC -DPETSC_HAVE_MUMPS
> -DPETSC_HAVE_SUPERLU
> CLEANFILES = executable-linux
>
> SRC =./../../
>
> OBJS = $(SRC)usg/math_common.o\
>  $(SRC)usg/geometry_definition.o\
>  ...
>  $(SRC)updtrootdensity.o
>
> exe: $(OBJS) chkopts
>  -${FLINKER} $(FFLAGS) $(FPPFLAGS) $(CPPFLAGS) -o executable-linux
> $(OBJS) ${PETSC_LIB}
>
> Any idea on this?
>

Satish fixed this:
https://gitlab.com/petsc/petsc/commit/2f9dabc9ab2f7bb653429b8d7acc8cc6e2538062

It will be in the next patch release, but you can also just use the current
master branch.

  Thanks,

 Matt


> Thanks,
>
> Danyang
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/