How can I use the Fortran Template Library?

Viewed 103

I'm trying to use the Fortran template library as show here. I don't know if there's some needed installation in order to use it. Should I download the zip file ? I created a file called task.F90_template as shown in the link and it contains:

T function task(self,ww,pas,cpt ,nb_element,cpt1,dt,dx,p_element,u_prime,u_prime_moins,u_prime_plus,&
&taux,grad_x_u,grad_t_u,grad_x_f,grad_t_f,ax_plus,ax_moins,ux_plus,ux_moins,sm,flux,tab0,tab)
T::self,ww,pas,cpt,nb_element,cpt1,dt,dx,p_element,u_prime,u_prime_moins,u_prime_plus,&
&taux,grad_x_u,grad_t_u,grad_x_f,grad_t_f,ax_plus,ax_moins,ux_plus,ux_moins,sm,flux,tab0,tab
end function task

I don't understand also where to instantiate the template manually using the C preprocessor

#define T integer
#include "task.F90_template"

#define T real
#include "task.F90_template"

I want also to ask about the extension of the file tasks.F90_template since it doesn't get automatically colored.

0 Answers
Related