Makefile (1338B)
1 # Copyright (C) 2017, 2018, 2025 |Méso|Star> 2 # 3 # This program is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 16 .POSIX: 17 18 include ../config.mk 19 20 NEXPERIMENTS = 10000000 21 NPATHS = 1000 22 SUN_DIRS = 270,40 23 24 RCV = cyl-rcv.yaml 25 INPUT = cyl.yaml 26 GEOM = geom 27 SIMUL = simul 28 29 default: run 30 31 simul: $(INPUT) 32 solstice -D$(SUN_DIRS) -n$(NEXPERIMENTS) -R$(RCV) -fo $(SIMUL) $(INPUT) 33 solstice -D$(SUN_DIRS) -g format=obj:split=geometry -fo $(GEOM) $(INPUT) 34 ../solppraw $(SIMUL) 35 ../solpp $(GEOM) $(SIMUL) 36 37 paths: $(PROG) $(INPUT) 38 solstice -D$(SUN_DIRS) -q -n$(NPATHS) -R$(RCV) -p default $(INPUT) | ../solpaths 39 40 run: paths simul 41 42 clean: 43 rm -rf $(GEOM) $(SIMUL) 44 rm -rf *-miscellaneous.obj 45 rm -rf *-paths.vtk 46 rm -rf *-primaries.vtk 47 rm -rf *-receivers.vtk 48 rm -rf *-raw-results.txt