piclas-framework / piclas

PICLas is a parallel, three-dimensional PIC-DSMC solver developed cooperatively by the Institute of Space Systems, Institute of Aerodynamics and Gas Dynamics at the University of Stuttgart and the spin-off boltzplatz. PICLas is a flexible particle-based plasma simulation suite.
https://piclas.readthedocs.io
GNU General Public License v3.0
71 stars 17 forks source link

Compilation fail mesh_readin with gcc 13.1 #16

Closed bourdaisj closed 1 year ago

bourdaisj commented 1 year ago

Hi, Here is the compilation error log I'm getting when trying to compile the project using gcc 13.

[PATH]/piclas/src/mesh/mesh_readin.f90:94:20:

   94 | CHECKSAFEINT(HSize(1),4)
      |                    1
Error: Missing kind-parameter at (1)
[ 72%] Building Fortran object CMakeFiles/libpiclasstaticF90.dir/src/particles/analyze/particle_analyze.f90.o
[PATH]/piclas/src/mesh/mesh_readin.f90:291:22:

  291 |   CHECKSAFEINT(HSize(2),4)
      |                      1
Error: Missing kind-parameter at (1)
[PATH]/repos/piclas/src/mesh/mesh_readin.f90:294:37:

  294 |   CHECKSAFEINT(8_8*INT(nGlobalElems,8),4)
      |                                     1
Error: Missing kind-parameter at (1)
make[2]: *** [CMakeFiles/libpiclasstaticF90.dir/build.make:543: CMakeFiles/libpiclasstaticF90.dir/src/mesh/mesh_readin.f90.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:231: CMakeFiles/libpiclasstaticF90.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Thanks for the help :)

pnizenkov commented 1 year ago

This should be fixed with the current release!