#!/bin/bash

#gfortran -g -fcheck=all -Wall mod_funcs.F90 mod_csts.F90 -o training.o training.F90 calc_geoswind.F90 calculo_tempes_densi_sealevel.F90 calc_utm_rej_era5_penin.F90 calc_utmcandelasgrid.F90 clasif_era_pen_kmeans.F90 predictores_significativos.F90 pts_ref_est_pen.F90 

#gfortran -g -fbacktrace mod_funcs.F90 mod_csts.F90 -mcmodel=medium -fPIC -shared -o training.so training.o training.F90 calc_geoswind.F90 calculo_tempes_densi_sealevel.F90 calc_utm_rej_era5_penin.F90 calc_utmcandelasgrid.F90 clasif_era_pen_kmeans.F90 predictores_significativos.F90 pts_ref_est_pen.F90 

# version que funciona
#gfortran -fPIC -shared -o training.so training.F90 mod_funcs.F90 mod_csts.F90 calc_geoswind.F90 calculo_tempes_densi_sealevel.F90 calc_utm_rej_era5_penin.F90 calc_utmcandelasgrid.F90 clasif_era_pen_kmeans.F90 predictores_significativos.F90 pts_ref_est_pen.F90 

gfortran -fPIC -shared -o CSTools.so training.F90 mod_funcs.F90 mod_csts.F90 calc_geoswind.F90 calculo_tempes_densi_sealevel.F90 calc_utm_rej_era5_penin.F90 calc_utmcandelasgrid.F90 clasif_era_pen_kmeans.F90 predictores_significativos.F90 pts_ref_est_pen.F90 

