Large-scale structure formation including gas + cooling + star formation

From: Hassan Fathivavsari <>
Date: Thu, 1 Jul 2021 19:58:54 +0200

Dear all,

I am trying to simulate Large-scale structure formation including gas +
cooling + star formation.
I used the file from the /example/G2-lcdm-gas folder as the
template and modified it
as follows in order to include the cooling and star formation processes:

# Basic code operation
# Gravity options
# Miscellaneous code options


As shown above I changed NTYPES from 2 to 3 and I also included COOLING and
STARFORMATION keys in order to activate these two processes.

After these modification I tried to compile the code again by issuing the
following command:

pc_at_ubuntu:~/Desktop/SPH/gadget4-master$ make DIR=./examples/G2-lcdm-gas/

But after compiling for about a minute, it crashed with the following error:

mpicxx -std=c++11 -O3 -Wall -I/hdf5/build/include -I/usr/local/include
-I/usr/local/include -I./examples/G2-lcdm-gas//build -Isrc -c
src/cooling_sfr/ -o
src/cooling_sfr/ In member function ‘void
src/cooling_sfr/ error: expected ‘;’ before ‘}’ token
  600 | pc.epsHep = PhotoTUVB[0].eHep;1111
      | ^
      | ;
  601 |
  602 | }
      | ~
src/cooling_sfr/ warning: statement has no effect
  600 | pc.epsHep = PhotoTUVB[0].eHep;1111
      | ^~~~
make: *** [Makefile:505: examples/G2-lcdm-gas//build/cooling_sfr/cooling.o]
Error 1

I would be grateful for any insight into this problem.
Best regards,
Received on 2021-07-01 19:59:13

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:32 CET