AW: Error when compiling an older version of the pencil code

3 views
Skip to first unread message

Matthias Rheinhardt

unread,
Jun 8, 2024, 12:07:06 PMJun 8
to pencil-code-discuss

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


Von: pencil-co...@googlegroups.com <pencil-co...@googlegroups.com> im Auftrag von Yuvraj Sinha <yuvraj....@gmail.com>
Gesendet: Donnerstag, 6. Juni 2024 00:22:36
An: pencil-code-discuss
Betreff: Error when compiling an older version of the pencil code
 
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.

Yuvraj Sinha

unread,
Jun 8, 2024, 6:19:24 PMJun 8
to pencil-code-discuss
Hi Matthias,

I was trying to integrate the local flame displacement speed (Sd) calculation into the chemistry.f90 using the species conservation equation that's when I encountered the problem. Thanks for the help. I ended up successfully integrating the same in my current version. I am able to write the Sd field as an auxiliary variable in addition to viscosity. 

Next, I need to calculate the sum of the calculated Sd field over the entire domain, similar to how TTm (print.in) is calculated. Although I would be using the sum to eventually alter the inlet x velocity but first wanted to check if the calculations are consistent.

I'm currently working on it. Let me know if you could help me calculate the same.

Thanks

Best regards,
Yuvraj
Reply all
Reply to author
Forward
0 new messages