[Nek5000-users] How to make the tools?

stefanke stefanke at lav.mavt.ethz.ch
Wed Nov 25 03:17:56 CST 2009


First of all there is no need to use the MPI-wrappers because all tools are serial programs.
To compile the tools just run:

./maketools <toolname>

e.g.

./maketools genmap


hth,
Stefan


On Nov 25, 2009, at 10:02 AM, Frederik Folke wrote:

> Dear Nek developers,
> 
> I just started to introduce myself to your code. Unfortunately I had some problems to
> "make" the tools of the program (prenek, postnek...). I used the existing makefile in the
> nek5_svn/trunk/tools/prenek directory and added the first lines of the maketools script:
> 
> #!/bin/bash
> 
> # binary path
> bin_nek_tools="$HOME/bin"
> 
> # specify your compilers here
> F77="mpif77"
> CC="mpicc"
> 
> To start the compilation I typed: make -f makefile
> 
> But I got the following message:
> 
> "mpif77" -c  prenek.f
> prenek.f:89.3:
> 
> 300     CALL SETEQT                                                      1
> prenek.f:198.72:
> 
>       GO TO 300                                                                                                                           2
> Warning: Label at (1) is not in the same block as the GOTO statement at (2)
> "mpif77" -c  curve.f
> "mpif77" -c  edit.f
> "mpif77" -c  build.f
> "mpif77" -c  build1.f
> "mpif77" -c  build2.f
> "mpif77" -c  bound.f
> "mpif77" -c  plot.f
> "mpif77" -c  xinterface.f
> "mpif77" -c  glomod.f
> glomod.f:1534.9:
> 
>    ja(2) = w(2,1)                                                           1
> Warning: Array reference at (1) is out of bounds (2 > 1) in dimension 1
> "mpif77" -c  legend.f
> "mpif77" -c  vprops.f
> "mpif77" -c  iolib.f
> "mpif77" -c  subs.f
> "mpif77" -c  zipper2.f
> zipper2.f:1560.20:
> 
>    COMMON /CTMP2/ XP(NXM3),YP(NXM3),ZP(NXM3),RRL(3)                                    1
> Warning: Named COMMON block 'ctmp2' at (1) shall be of the same size
> zipper2.f:2816.20:
> 
>    COMMON /CTMP2/ XP(NXM3),YP(NXM3),ZP(NXM3),RRL(3)                                    1
> Warning: Named COMMON block 'ctmp2' at (1) shall be of the same size
> zipper2.f:4640.20:
> 
>    common /ctmp0/ jx(nxm*3),jyt(nym*3),jzt(nzm*3)                                      1
> Warning: Named COMMON block 'ctmp0' at (1) shall be of the same size
> zipper2.f:4639.20:
> 
>    common /ctmp2/ xp(nxm3),yp(nxm3),zp(nxm3),wk(ldw)                                   1
> Warning: Named COMMON block 'ctmp2' at (1) shall be of the same size
> zipper2.f:4776.20:
> 
>    common /ctmp0/ xcb(2,2,2),ycb(2,2,2),zcb(2,2,2),w(ldw)                              1
> Warning: Named COMMON block 'ctmp0' at (1) shall be of the same size
> "mpif77" -c  postnek6.f
> "mpif77" -c  screen.f
> "mpicc" -c  revert.c
> "mpif77" -c  crs.f
> "mpif77" -c  mxm.f
> "mpicc" -c  xdriver.c
> "mpif77" -o "OME/bin"/prex prenek.o curve.o edit.o build.o build1.o build2.o bound.o
> plot.o xinterface.o glomod.o legend.o vprops.o iolib.o subs.o zipper2.o postnek6.o
> screen.o revert.o crs.o mxm.o xdriver.o  -L/usr/X11R6/lib -lX11 -lm
> /usr/bin/ld: cannot open output file OME/bin/prex: No such file or directory
> collect2: ld returned 1 exit status
> make: *** [prex] Error 1
> 
> 
> Hope you can help me.
> 
> Best regards,
> Frederik
> 
> 
> p.s.: Is there existing a "Users Guide" for Nek5000 or is at least the "Users Guide" for
> Nekton v?? helpfull?
> 
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users




More information about the Nek5000-users mailing list