Page 1 of 1

How does makefile work?

PostPosted: Sat Aug 27, 2016 12:48 am
by hamidreza_radaei
Dear all
I am starting to work with SPHysic, But I have a problem related to *.mak file. Here is a brief of my work: first of all, I ran the SPHysicsgen.f as a project in visual studio(intel Fortran). Then it works correctly and gives outputs(for example SPHysis.mak).After copying these files in related folder, when I want to run the SPHysics.f, it gives a lot of errors such as:
The type of the actual argument differs from the type of the dummy argument.
It seems that because there are many subroutines with the same name and different arguments! In the other words, This indicates that the SPHysics.mak doesn't work properly!

As one member (bjhaw2) mentions in a post: " Below are the original first two lines of the makefile:
Line 1: OPTIONS= /NOLOGO
Line 2: COPTIONS= /03
Note the zero between the / and 3 on the second line. This should be O (capital o)."

I change it, but unfortunately, it still doesn't work properly!
I really look forward to your answers. Any suggestion would be really appreciated.

Re: How does makefile work?

PostPosted: Mon Mar 20, 2017 7:08 am
by karanam.gowtham9
Even I am encountering the same problem. Did you solve it ?

Re: How does makefile work?

PostPosted: Mon Aug 21, 2017 6:37 am
by sebastian.koch
You can choose between different kernels, time integration algorithms, filters, boundary conditions, riemann solver, Equation of States (EoS) and so on. For example there are 3 EoS you can choose. There is a subroutine for each of the three EoS and each one has the name "equation_of_state". You can choose one, using the*.txt or INDAT-file. The make-File will compile the chosen parts, while the unchosen are not used. If you want to use your Visiual Studio, you have to take exactly 1 of the 3 EoS. No subroutine-name has to be exactly 1 time in your project.
If you want to run SPHysics use run_directory\foldername\*.bat