From 7b09f829b3f6fc47201899f7d82dae3e77ba74a3 Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Tue, 5 Sep 2023 11:46:25 +0200 Subject: [PATCH] Setup a source/build project structure --- cluster/.gitkeep | 0 cluster/Makefile | 21 --------------------- sphere/.gitkeep | 0 sphere/Makefile | 21 --------------------- {cluster => src/cluster}/DCLU | 0 {cluster => src/cluster}/DEDFB | 0 src/cluster/Makefile | 22 ++++++++++++++++++++++ {cluster => src/cluster}/OCLU | 0 {cluster => src/cluster}/clu.f | 0 {cluster => src/cluster}/edfb.f | 0 {sphere => src/sphere}/DEDFB | 0 {sphere => src/sphere}/DSPH | 0 src/sphere/Makefile | 22 ++++++++++++++++++++++ {sphere => src/sphere}/OSPH | 0 {sphere => src/sphere}/edfb.f | 0 {sphere => src/sphere}/sph.f | 0 {trapping => src/trapping}/DFRFME | 0 {trapping => src/trapping}/DLFFFT | 0 src/trapping/Makefile | 22 ++++++++++++++++++++++ {trapping => src/trapping}/OFRF | 0 {trapping => src/trapping}/frfme.f | 0 {trapping => src/trapping}/lffft.f | 0 trapping/.gitkeep | 0 trapping/Makefile | 21 --------------------- 24 files changed, 66 insertions(+), 63 deletions(-) delete mode 100644 cluster/.gitkeep delete mode 100644 cluster/Makefile delete mode 100644 sphere/.gitkeep delete mode 100644 sphere/Makefile rename {cluster => src/cluster}/DCLU (100%) rename {cluster => src/cluster}/DEDFB (100%) create mode 100644 src/cluster/Makefile rename {cluster => src/cluster}/OCLU (100%) rename {cluster => src/cluster}/clu.f (100%) rename {cluster => src/cluster}/edfb.f (100%) rename {sphere => src/sphere}/DEDFB (100%) rename {sphere => src/sphere}/DSPH (100%) create mode 100644 src/sphere/Makefile rename {sphere => src/sphere}/OSPH (100%) rename {sphere => src/sphere}/edfb.f (100%) rename {sphere => src/sphere}/sph.f (100%) rename {trapping => src/trapping}/DFRFME (100%) rename {trapping => src/trapping}/DLFFFT (100%) create mode 100644 src/trapping/Makefile rename {trapping => src/trapping}/OFRF (100%) rename {trapping => src/trapping}/frfme.f (100%) rename {trapping => src/trapping}/lffft.f (100%) delete mode 100644 trapping/.gitkeep delete mode 100644 trapping/Makefile diff --git a/cluster/.gitkeep b/cluster/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/cluster/Makefile b/cluster/Makefile deleted file mode 100644 index 210889bc..00000000 --- a/cluster/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -FC=gfortran -FCFLAGS=-std=legacy -O3 -LFLAGS= - -all: clu edfb - -clu: clu.o - $(FC) $(FCFLAGS) -o clu clu.o $(LFLAGS) - -edfb: edfb.o - $(FC) $(FCFLAGS) -o edfb edfb.o $(LFLAGS) - -clean: - rm -f *.o - -wipe: - rm -f clu edfb *.o - -%.o : %.f - $(FC) $(FCFLAGS) -c -o $@ $< - diff --git a/sphere/.gitkeep b/sphere/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/sphere/Makefile b/sphere/Makefile deleted file mode 100644 index 47e5c079..00000000 --- a/sphere/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -FC=gfortran -FCFLAGS=-std=legacy -O3 -LFLAGS= - -all: edfb sph - -edfb: edfb.o - $(FC) $(FCFLAGS) -o edfb edfb.o $(LFLAGS) - -sph: sph.o - $(FC) $(FCFLAGS) -o sph sph.o $(LFLAGS) - -clean: - rm -f *.o - -wipe: - rm -f edfb sph *.o - -%.o : %.f - $(FC) $(FCFLAGS) -c -o $@ $< - diff --git a/cluster/DCLU b/src/cluster/DCLU similarity index 100% rename from cluster/DCLU rename to src/cluster/DCLU diff --git a/cluster/DEDFB b/src/cluster/DEDFB similarity index 100% rename from cluster/DEDFB rename to src/cluster/DEDFB diff --git a/src/cluster/Makefile b/src/cluster/Makefile new file mode 100644 index 00000000..f884a43e --- /dev/null +++ b/src/cluster/Makefile @@ -0,0 +1,22 @@ +BUILDDIR=../../build/cluster +FC=gfortran +FCFLAGS=-std=legacy -O3 +LFLAGS= + +all: clu edfb + +clu: clu.o + $(FC) $(FCFLAGS) -o $(BUILDDIR)/clu $(BUILDDIR)/clu.o $(LFLAGS) + +edfb: edfb.o + $(FC) $(FCFLAGS) -o $(BUILDDIR)/edfb $(BUILDDIR)/edfb.o $(LFLAGS) + +clean: + rm -f $(BUILDDIR)/*.o + +wipe: + rm -f $(BUILDDIR)/clu $(BUILDDIR)/edfb $(BUILDDIR)/*.o + +%.o : %.f + $(FC) $(FCFLAGS) -c -o $(BUILDDIR)/$@ $< + diff --git a/cluster/OCLU b/src/cluster/OCLU similarity index 100% rename from cluster/OCLU rename to src/cluster/OCLU diff --git a/cluster/clu.f b/src/cluster/clu.f similarity index 100% rename from cluster/clu.f rename to src/cluster/clu.f diff --git a/cluster/edfb.f b/src/cluster/edfb.f similarity index 100% rename from cluster/edfb.f rename to src/cluster/edfb.f diff --git a/sphere/DEDFB b/src/sphere/DEDFB similarity index 100% rename from sphere/DEDFB rename to src/sphere/DEDFB diff --git a/sphere/DSPH b/src/sphere/DSPH similarity index 100% rename from sphere/DSPH rename to src/sphere/DSPH diff --git a/src/sphere/Makefile b/src/sphere/Makefile new file mode 100644 index 00000000..41d1d334 --- /dev/null +++ b/src/sphere/Makefile @@ -0,0 +1,22 @@ +BUILDDIR=../../build/sphere +FC=gfortran +FCFLAGS=-std=legacy -O3 +LFLAGS= + +all: edfb sph + +edfb: edfb.o + $(FC) $(FCFLAGS) -o $(BUILDDIR)/edfb $(BUILDDIR)/edfb.o $(LFLAGS) + +sph: sph.o + $(FC) $(FCFLAGS) -o $(BUILDDIR)/sph $(BUILDDIR)/sph.o $(LFLAGS) + +clean: + rm -f $(BUILDDIR)/*.o + +wipe: + rm -f $(BUILDDIR)/edfb $(BUILDDIR)/sph $(BUILDDIR)/*.o + +%.o : %.f + $(FC) $(FCFLAGS) -c -o $(BUILDDIR)/$@ $< + diff --git a/sphere/OSPH b/src/sphere/OSPH similarity index 100% rename from sphere/OSPH rename to src/sphere/OSPH diff --git a/sphere/edfb.f b/src/sphere/edfb.f similarity index 100% rename from sphere/edfb.f rename to src/sphere/edfb.f diff --git a/sphere/sph.f b/src/sphere/sph.f similarity index 100% rename from sphere/sph.f rename to src/sphere/sph.f diff --git a/trapping/DFRFME b/src/trapping/DFRFME similarity index 100% rename from trapping/DFRFME rename to src/trapping/DFRFME diff --git a/trapping/DLFFFT b/src/trapping/DLFFFT similarity index 100% rename from trapping/DLFFFT rename to src/trapping/DLFFFT diff --git a/src/trapping/Makefile b/src/trapping/Makefile new file mode 100644 index 00000000..bfad43bd --- /dev/null +++ b/src/trapping/Makefile @@ -0,0 +1,22 @@ +BUILDDIR=../../build/trapping +FC=gfortran +FCFLAGS=-std=legacy -O3 +LFLAGS= + +all: frfme lffft + +frfme: frfme.o + $(FC) $(FCFLAGS) -o $(BUILDDIR)/frfme $(BUILDDIR)/frfme.o $(LFLAGS) + +lffft: lffft.o + $(FC) $(FCFLAGS) -o $(BUILDDIR)/lffft $(BUILDDIR)/lffft.o $(LFLAGS) + +clean: + rm -f $(BUILDDIR)/*.o + +wipe: + rm -f $(BUILDDIR)/frfme $(BUILDDIR)/lffft $(BUILDDIR)/*.o + +%.o : %.f + $(FC) $(FCFLAGS) -c -o $(BUILDDIR)/$@ $< + diff --git a/trapping/OFRF b/src/trapping/OFRF similarity index 100% rename from trapping/OFRF rename to src/trapping/OFRF diff --git a/trapping/frfme.f b/src/trapping/frfme.f similarity index 100% rename from trapping/frfme.f rename to src/trapping/frfme.f diff --git a/trapping/lffft.f b/src/trapping/lffft.f similarity index 100% rename from trapping/lffft.f rename to src/trapping/lffft.f diff --git a/trapping/.gitkeep b/trapping/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/trapping/Makefile b/trapping/Makefile deleted file mode 100644 index 9ce18102..00000000 --- a/trapping/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -FC=gfortran -FCFLAGS=-std=legacy -O3 -LFLAGS= - -all: frfme lffft - -frfme: frfme.o - $(FC) $(FCFLAGS) -o frfme frfme.o $(LFLAGS) - -lffft: lffft.o - $(FC) $(FCFLAGS) -o lffft lffft.o $(LFLAGS) - -clean: - rm -f *.o - -wipe: - rm -f frfme lffft *.o - -%.o : %.f - $(FC) $(FCFLAGS) -c -o $@ $< - -- GitLab