How does makefile work?

Issues and examples using this model (available in the Models Repository)

How does makefile work?

Postby hamidreza_radaei on Sat Aug 27, 2016 12:48 am

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 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.
Posts: 1
Joined: Tue Aug 23, 2016 8:55 am

Re: How does makefile work?

Postby karanam.gowtham9 on Mon Mar 20, 2017 7:08 am

Even I am encountering the same problem. Did you solve it ?
Posts: 1
Joined: Fri Feb 10, 2017 8:54 am

Re: How does makefile work?

Postby sebastian.koch on Mon Aug 21, 2017 6:37 am

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
Posts: 5
Joined: Wed Jan 27, 2016 8:46 am

Return to SPHysics User Discussions

Who is online

Users browsing this forum: No registered users and 1 guest