Hi Yuvraj,
the first error in hydro.f90 is strange as it indicates an incoherence in the code version you are compiling. You can avoid the error by
real ::
delta_u=1.
above the "contains" line in that file but it would be better to use a code version, which doesn't show this inconsistency. The other error is due to misbehavior of gfortran. You can suppress it by commenting out line
6731.
Best,
Matthias
Hi all,
I was just compiling an older version of the pencil code using pc_build and I encountered an error as follows.
ar r magnetic.a nomagnetic.o magnetic/nomeanfield.o magnetic/nomeanfield_demfdt.o
ar: creating magnetic.a
hydro.f90:170:28:
170 | ll_sh, mm_sh, delta_u, n_xprof
| 1
Error: Symbol ‘delta_u’ in namelist ‘hydro_init_pars’ at (1) must be declared before the namelist is declared.
hydro.f90:6720:21:
6720 | call copy_addr_c(lpressuregradient_gas,p_par(1)) ! int
| 1
......
6731 | call copy_addr_c(idiag_urms,p_diag(1))
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (LOGICAL(4)/INTEGER(4)).
make[2]: *** [Makefile.src:2405: hydro.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/yuvraj/Downloads/pencil-code_Himanshu_V/Test/init_cond_1D/src'
make[1]: *** [Makefile.src:2721: code] Error 2
make[1]: Leaving directory '/home/yuvraj/Downloads/pencil-code_Himanshu_V/Test/init_cond_1D/src'
make: *** [Makefile:25: default_to_be] Error 2
'make -j FFLAGS_DOUBLE=-fdefault-real-8 -fdefault-double-8 CFLAGS_DOUBLE=-DDOUBLE_PRECISION LD_MPI= CFLAGS_FFTW3= FFLAGS_FFTW3= LD_FFTW3= CFLAGS_FFTW2= FFLAGS_FFTW2= LD_FFTW2= FC=gfortran F77=$(FC) FFLAGS=-O LDFLAGS_HELPER=-dynamic FSTD_95=-std=f95 FSTD_2003=-std=f2003
CC=gcc CFLAGS=-DFUNDERSC=1 default_to_be' failed: <>
Any help in this regard is appreciated.
Thanks
Best regards,
Yuvraj
--
You received this message because you are subscribed to the Google Groups "pencil-code-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pencil-code-dis...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pencil-code-discuss/fba5f4be-0ec7-4831-9f0d-560320c847e1n%40googlegroups.com.