-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
1025 lines (834 loc) · 44.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# make all: compiles all
# clean: removes all .o and .mod files, all ~files etc.
# cleanall: removes also .eo files
#COMMENTS BEGIN
#NOTE: SINCE /usr/include/hdf5.mod WAS COMPILED WITH GFORTRAN, IFORT NEEDS A LOCAL LIBRARY!!!!
#FURTHER, NEED TO EXPORT LIBRARY PATH THE LIBRARY PATH:
#ADD_LIB_PATH=/home/moon/levin/lib64
#LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$NEW_LIB_PATH"
#export LD_LIBRARY_PATH
#COMMENTS END
.SUFFIXES: .f90
#################USER INPUT: CHOOSE COMPILER AND DEBUG OPTION############
#for now in shell script
COMPILER = gfortran
#COMPILER = ifort
#COMPILER = mpif90
#DEBUG = true
###########################HDF5 ENVIRONMENT VARIABLE#####################
ifndef DIR_HDF5
$(info DIR_HDF5 Not found)
$(error Undefined variable DIR_HDF5: export DIR_HDF5=<location of hdf5 lib>)
endif
#########################################################################
#operating system
UNAME := $(shell uname)
.SUFFIXES: .f90
#####################GFORTRAN COMPILER OPTIONS ETC#######################
ifeq ($(COMPILER),gfortran)
F90 = gfortran
LD = gfortran
ifeq ($(UNAME), Linux)
$(info OS detected: Linux)
DIR_MOD_HDF5=$(DIR_HDF5)/include
DIR_LIB_HDF5=$(DIR_HDF5)/lib \
$(DIR_HDF5)/lib/libhdf5_fortran.so \
$(DIR_HDF5)/lib/libhdf5.so \
$(DIR_HDF5)/lib/libhdf5_hl.so \
$(DIR_HDF5)/lib/libhdf5hl_fortran.so
else ifeq ($(UNAME), Darwin)
$(info OS detected: MAC)
DIR_MOD_HDF5=$(DIR_HDF5)/include
DIR_LIB_HDF5=$(DIR_HDF5)/lib \
$(DIR_HDF5)/lib/libhdf5_fortran.dylib \
$(DIR_HDF5)/lib/libhdf5.dylib \
$(DIR_HDF5)/lib/libhdf5_hl.dylib \
$(DIR_HDF5)/lib/libhdf5hl_fortran.dylib
else
$(error No OS detected, please have a look into the Makefile)
endif
OMP_FLAG=-fopenmp
#
ifeq ($(DEBUG),true)
DEBUG_FLAGS = -Og -Wall -Wextra -Warray-temporaries -Wconversion -pedantic-errors -fcheck=all -fbacktrace
else
DEBUG_FLAGS =
endif
CFLAGS = -ffree-line-length-none -c -O3 $(OMP_FLAG) $(DEBUG_FLAGS)
MFLAGS = -J
CDEFINED = true
endif
#####################IFORT COMPILER OPTIONS ETC#########################
ifeq ($(COMPILER),ifort)
F90 = ifort
LD = ifort
ifeq ($(UNAME), Linux)
$(info OS detected: Linux)
DIR_MOD_HDF5=$(DIR_HDF5)/include
DIR_LIB_HDF5=$(DIR_HDF5)/lib \
$(DIR_HDF5)/lib/libhdf5_fortran.so \
$(DIR_HDF5)/lib/libhdf5.so \
$(DIR_HDF5)/lib/libhdf5_hl.so \
$(DIR_HDF5)/lib/libhdf5hl_fortran.so
else ifeq ($(UNAME), Darwin)
$(info OS detected: MAC)
DIR_MOD_HDF5=$(DIR_HDF5)/include
DIR_LIB_HDF5=$(DIR_HDF5)/lib \
$(DIR_HDF5)/lib/libhdf5_fortran.dylib \
$(DIR_HDF5)/lib/libhdf5.dylib \
$(DIR_HDF5)/lib/libhdf5_hl.dylib \
$(DIR_HDF5)/lib/libhdf5hl_fortran.dylib
else
$(error No OS detected, please have a look into the Makefile)
endif
OMP_FLAG=-fopenmp
ifeq ($(DEBUG),true)
DEBUG_FLAGS = -traceback -fpe0 -mcmodel=medium -shared-intel -check all -debug all
else
DEBUG_FLAGS =
endif
CFLAGS = -w -c -O3 -mp -assume byterecl -r8 $(OMP_FLAG) $(DEBUG_FLAG)
MFLAGS = -module
CDEFINED = true
endif
#####################MPIF909 COMPILER OPTIONS ETC########################
ifeq ($(COMPILER),mpif90)
F90 = mpif90
LD = mpif90
ifeq ($(UNAME), Linux)
$(info OS detected: Linux)
DIR_MOD_HDF5=$(DIR_HDF5)/include
DIR_LIB_HDF5=$(DIR_HDF5)/lib \
$(DIR_HDF5)/lib/libhdf5_fortran.so \
$(DIR_HDF5)/lib/libhdf5.so \
$(DIR_HDF5)/lib/libhdf5_hl.so \
$(DIR_HDF5)/lib/libhdf5hl_fortran.so
else ifeq ($(UNAME), Darwin)
$(info OS detected: MAC)
DIR_MOD_HDF5=$(DIR_HDF5)/include
DIR_LIB_HDF5=$(DIR_HDF5)/lib \
$(DIR_HDF5)/lib/libhdf5_fortran.dylib \
$(DIR_HDF5)/lib/libhdf5.dylib \
$(DIR_HDF5)/lib/libhdf5_hl.dylib \
$(DIR_HDF5)/lib/libhdf5hl_fortran.dylib
else
$(error No OS detected, please have a look into the Makefile)
endif
OMP_FLAG=-fopenmp
#
ifeq ($(DEBUG),true)
DEBUG_FLAGS = -Og -Wall -Wextra -Warray-temporaries -Wconversion -pedantic-errors -fcheck=all -fbacktrace
else
DEBUG_FLAGS =
endif
CFLAGS = -ffree-line-length-none -c -O3 $(OMP_FLAG) $(DEBUG_FLAGS)
MFLAGS = -J
CDEFINED = true
endif
#########################################################################
ifneq ($(CDEFINED),true)
ifneq ($(MAKECMDGOALS),clean)
$(error compiler $(COMPILER) not defined)
endif
endif
########################################################################
DIR_SRC = src
DIR_OBJ = objects/objects
DIR_MOD = modules/modules
DIR_SRC_MODEL = src_model
DIR_OBJ_MODEL = objects/objects_model
DIR_MOD_MODEL = modules/modules_model
DIR_SRC_SC3D = src_sc3d
DIR_OBJ_SC3D = objects/objects_sc3d
DIR_MOD_SC3D = modules/modules_sc3d
DIR_SRC_PHOTPROF = src_photprof
DIR_OBJ_PHOTPROF = objects/objects_photprof
DIR_MOD_PHOTPROF = modules/modules_photprof
DIR_SRC_SPEC = src_spec
DIR_OBJ_SPEC = objects/objects_spec
DIR_MOD_SPEC = modules/modules_spec
DIR_SRC_MODELSPEC = src_modelspec
DIR_OBJ_MODELSPEC = objects/objects_modelspec
DIR_MOD_MODELSPEC = modules/modules_modelspec
DIR_SRC_SPECVBIN = src_spec_vbin
DIR_OBJ_SPECVBIN = objects/objects_spec_vbin
DIR_MOD_SPECVBIN = modules/modules_spec_vbin
DIR_SRC_MODELSPECVBIN = src_modelspec_vbin
DIR_OBJ_MODELSPECVBIN = objects/objects_modelspec_vbin
DIR_MOD_MODELSPECVBIN = modules/modules_modelspec_vbin
DIR_SRC_OPAL = src_opal
DIR_OBJ_OPAL = objects/objects_opal
DIR_MOD_OPAL = modules/modules_opal
DIR_SRC_LTE = src_lte
DIR_OBJ_LTE = objects/objects_lte
DIR_MOD_LTE = modules/modules_lte
#module files
OBJSM_TYPE = $(DIR_OBJ)/mod_type.o
OBJSM_MODEL = $(DIR_OBJ)/mod_type.o \
$(DIR_OBJ)/mod_sort.o \
$(DIR_OBJ)/mod_grid.o \
$(DIR_OBJ)/mod_integ1d.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/mod_interp3d.o \
$(DIR_OBJ)/mod_opacities.o \
$(DIR_OBJ)/mod_iline.o \
$(DIR_OBJ)/mod_amrvac_reader.o \
$(DIR_OBJ_LTE)/mod_lte.o \
$(DIR_OBJ_MODEL)/mod_model.o
OBJSM_PHOTPROF = $(DIR_OBJ)/mod_type.o \
$(DIR_OBJ)/mod_grid.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ_PHOTPROF)/mod_photprof.o
OBJSM_SC3D = $(DIR_OBJ)/mod_type.o \
$(DIR_OBJ)/mod_sort.o \
$(DIR_OBJ)/mod_grid.o \
$(DIR_OBJ)/mod_integ1d.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/mod_interp3d.o \
$(DIR_OBJ)/mod_opacities.o \
$(DIR_OBJ)/mod_iline.o \
$(DIR_OBJ_LTE)/mod_lte.o \
$(DIR_OBJ_SC3D)/mod_sc3d.o
OBJSM_SPEC = $(DIR_OBJ)/mod_type.o \
$(DIR_OBJ)/mod_grid.o \
$(DIR_OBJ)/mod_sort.o \
$(DIR_OBJ)/mod_integ1d.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/mod_interp3d.o \
$(DIR_OBJ)/mod_opacities.o \
$(DIR_OBJ)/mod_iline.o \
$(DIR_OBJ_LTE)/mod_lte.o \
$(DIR_OBJ_PHOTPROF)/mod_photprof.o \
$(DIR_OBJ_SPEC)/mod_spec.o
OBJSM_MODELSPEC = $(DIR_OBJ)/mod_type.o \
$(DIR_OBJ)/mod_sort.o \
$(DIR_OBJ)/mod_grid.o \
$(DIR_OBJ)/mod_integ1d.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/mod_interp3d.o \
$(DIR_OBJ)/mod_opacities.o \
$(DIR_OBJ)/mod_iline.o \
$(DIR_OBJ_LTE)/mod_lte.o \
$(DIR_OBJ_MODELSPEC)/mod_modelspec.o
OBJSM_SPECVBIN = $(DIR_OBJ)/mod_type.o \
$(DIR_OBJ)/mod_sort.o \
$(DIR_OBJ)/mod_grid.o \
$(DIR_OBJ)/mod_integ1d.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/mod_interp3d.o \
$(DIR_OBJ)/mod_opacities.o \
$(DIR_OBJ)/mod_iline.o \
$(DIR_OBJ_LTE)/mod_lte.o \
$(DIR_OBJ_PHOTPROF)/mod_photprof.o \
$(DIR_OBJ_SPECVBIN)/mod_spec.o
OBJSM_MODELSPECVBIN = $(DIR_OBJ)/mod_type.o \
$(DIR_OBJ)/mod_sort.o \
$(DIR_OBJ)/mod_grid.o \
$(DIR_OBJ)/mod_integ1d.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/mod_interp3d.o \
$(DIR_OBJ)/mod_opacities.o \
$(DIR_OBJ)/mod_iline.o \
$(DIR_OBJ_LTE)/mod_lte.o \
$(DIR_OBJ_MODELSPECVBIN)/mod_modelspec.o
OBJSM_OPAL = $(DIR_OBJ)/mod_type.o \
$(DIR_OBJ_OPAL)/mod_opal.o
OBJSM_LTE = $(DIR_OBJ)/mod_type.o \
$(DIR_OBJ_OPAL)/mod_lte.o
########################################################################
#for creating atmospheric model as input to sc3d.eo
OBJS1_MODEL = $(DIR_OBJ)/math.o \
$(DIR_OBJ)/eispackEV.o \
$(DIR_OBJ)/model_laws.o \
$(DIR_OBJ)/info_region.o \
$(DIR_OBJ_MODEL)/model1d.o \
$(DIR_OBJ_MODEL)/model2d.o \
$(DIR_OBJ_MODEL)/model3d.o \
$(DIR_OBJ_MODEL)/model_output.o
OBJS2_MODEL = $(OBJS1_MODEL) $(OBJSM_MODEL) $(DIR_OBJ_MODEL)/model.o
#
#for main program sc3d.eo
OBJS1_SC3D = $(DIR_OBJ)/math.o \
$(DIR_OBJ)/eispackEV.o \
$(DIR_OBJ)/formal_sc.o \
$(DIR_OBJ)/ng_extrapol.o \
$(DIR_OBJ)/sobolev1d.o \
$(DIR_OBJ)/sobolev3d.o \
$(DIR_OBJ)/sparse.o \
$(DIR_OBJ)/lebedev.o \
$(DIR_OBJ)/info_region.o \
$(DIR_OBJ)/model_laws.o \
$(DIR_OBJ_SC3D)/anglenodes.o \
$(DIR_OBJ_SC3D)/formal_sc2d.o \
$(DIR_OBJ_SC3D)/formal_sc3d.o \
$(DIR_OBJ_SC3D)/formal_fvm2d.o \
$(DIR_OBJ_SC3D)/formal_fvm3d.o \
$(DIR_OBJ_SC3D)/output_sc3d.o \
$(DIR_OBJ_SC3D)/mint_fvm3d.o \
$(DIR_OBJ_SC3D)/mint_sc3d.o \
$(DIR_OBJ_SC3D)/scont_new3d.o \
$(DIR_OBJ_SC3D)/sline_new3d.o \
$(DIR_OBJ_SC3D)/grid_spatial.o \
$(DIR_OBJ_SC3D)/grid_delxyz.o \
$(DIR_OBJ_SC3D)/model_sc3d.o \
$(DIR_OBJ_SC3D)/benchmark01.o \
$(DIR_OBJ_SC3D)/benchmark02.o \
$(DIR_OBJ_SC3D)/benchmark03.o \
$(DIR_OBJ_SC3D)/benchmark04.o \
$(DIR_OBJ_SC3D)/benchmark05.o \
$(DIR_OBJ_SC3D)/benchmark06.o \
$(DIR_OBJ_SC3D)/benchmark07.o \
$(DIR_OBJ_SC3D)/benchmark08.o \
$(DIR_OBJ_SC3D)/benchmark09.o \
$(DIR_OBJ_SC3D)/benchmark10.o \
$(DIR_OBJ_SC3D)/benchmark11.o \
$(DIR_OBJ_SC3D)/benchmark12.o \
$(DIR_OBJ_SC3D)/benchmark13.o \
$(DIR_OBJ_SC3D)/benchmark14.o \
$(DIR_OBJ_SC3D)/tests.o
OBJS2_SC3D = $(OBJS1_SC3D) $(OBJSM_SC3D) $(DIR_OBJ_SC3D)/sc3d.o
OBJS1_PHOTPROF = $(DIR_OBJ)/math.o \
$(DIR_OBJ)/eispackEV.o
OBJS2_PHOTPROF = $(OBJS1_PHOTPROF) $(OBJSM_PHOTPROF) $(DIR_OBJ_PHOTPROF)/phot_profile.o
#formal integral single star
OBJS1_SPEC = $(DIR_OBJ)/info_region.o \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/eispackEV.o \
$(DIR_OBJ)/model_laws.o \
$(DIR_OBJ_PHOTPROF)/phot_profile.o \
$(DIR_OBJ_SPEC)/spec_output.o \
$(DIR_OBJ_SPEC)/spec_input.o \
$(DIR_OBJ_SPEC)/spec_tests.o \
$(DIR_OBJ_SPEC)/formal_lc.o
OBJS2_SPEC = $(OBJS1_SPEC) $(OBJSM_SPEC) $(DIR_OBJ_SPEC)/spec.o
#for creating atmospheric model that can be read in by spec.eo
OBJS1_MODELSPEC = $(DIR_OBJ)/model_laws.o \
$(DIR_OBJ)/sobolev1d.o \
$(DIR_OBJ)/info_region.o \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/eispackEV.o \
$(DIR_OBJ_OPAL)/mod_opal.o
OBJS2_MODELSPEC = $(OBJS1_MODELSPEC) $(OBJSM_MODELSPEC) $(DIR_OBJ_MODELSPEC)/modelspec.o
#formal integral binary system
OBJS1_SPECVBIN = $(DIR_OBJ)/info_region.o \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/eispackEV.o \
$(DIR_OBJ)/geompack2.o \
$(DIR_OBJ)/model_laws.o \
$(DIR_OBJ_PHOTPROF)/phot_profile.o \
$(DIR_OBJ_SPECVBIN)/spec_triangulation.o \
$(DIR_OBJ_SPECVBIN)/spec_transformations.o \
$(DIR_OBJ_SPECVBIN)/spec_output.o \
$(DIR_OBJ_SPECVBIN)/spec_input.o \
$(DIR_OBJ_SPECVBIN)/spec_tests.o \
$(DIR_OBJ_SPECVBIN)/spec_setupray3d.o \
$(DIR_OBJ_SPECVBIN)/formal_lc.o
OBJS2_SPECVBIN = $(OBJS1_SPECVBIN) $(OBJSM_SPECVBIN) $(DIR_OBJ_SPECVBIN)/spec.o
#for creating atmospheric model that can be read in by spec_vbin.eo
OBJS1_MODELSPECVBIN = $(DIR_OBJ)/model_laws.o \
$(DIR_OBJ)/sobolev1d.o \
$(DIR_OBJ)/info_region.o \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/eispackEV.o
OBJS2_MODELSPECVBIN = $(OBJS1_MODELSPECVBIN) $(OBJSM_MODELSPECVBIN) $(DIR_OBJ_MODELSPECVBIN)/modelspec.o
########################################################################
all: model sc3d spec modelspec spec_vbin modelspec_vbin
CPDIR = ../florian3d
copy:
mkdir $(CPDIR)
mkdir $(CPDIR)/outputFILES
mkdir $(CPDIR)/outputFILES_TEST
mkdir $(CPDIR)/outputFILES_TEMP
mkdir $(CPDIR)/inputFILES
mkdir $(CPDIR)/plotFILES
mkdir $(CPDIR)/modules
mkdir $(CPDIR)/modules/modules
mkdir $(CPDIR)/modules/modules_model
mkdir $(CPDIR)/modules/modules_modelspec
mkdir $(CPDIR)/modules/modules_modelspec_vbin
mkdir $(CPDIR)/modules/modules_spec
mkdir $(CPDIR)/modules/modules_spec_vbin
mkdir $(CPDIR)/modules/modules_opal
mkdir $(CPDIR)/modules/modules_lte
mkdir $(CPDIR)/modules/modules_photprof
mkdir $(CPDIR)/modules/modules_sc3d
mkdir $(CPDIR)/objects
mkdir $(CPDIR)/objects/objects
mkdir $(CPDIR)/objects/objects_model
mkdir $(CPDIR)/objects/objects_modelspec
mkdir $(CPDIR)/objects/objects_modelspec_vbin
mkdir $(CPDIR)/objects/objects_spec
mkdir $(CPDIR)/objects/objects_spec_vbin
mkdir $(CPDIR)/objects/objects_opal
mkdir $(CPDIR)/objects/objects_lte
mkdir $(CPDIR)/objects/objects_photprof
mkdir $(CPDIR)/objects/objects_sc3d
cp -r outputFILES_TEST/*.pro $(CPDIR)/outputFILES_TEST/
cp -r outputFILES_TEST/*.py $(CPDIR)/outputFILES_TEST/
cp -r plotFILES/*.pro $(CPDIR)/plotFILES/
cp -r plotFILES/*.py $(CPDIR)/plotFILES/
# cp -r phot_flux $(CPDIR)/
cp -r opal_tables $(CPDIR)/
cp -r lte_tables $(CPDIR)/
cp in_sc3d $(CPDIR)/
cp in_spec $(CPDIR)/
cp in_spec_vbin $(CPDIR)/
cp in_modelspec $(CPDIR)/
cp in_modelspec_vbin $(CPDIR)/
cp indat_sc3d.nml $(CPDIR)/
cp indat_spec.nml $(CPDIR)/
cp indat_spec_vbin.nml $(CPDIR)/
cp indat_modelspec.nml $(CPDIR)/
cp indat_modelspec_vbin.nml $(CPDIR)/
cp Makefile $(CPDIR)/
cp -r src* $(CPDIR)/
cp *.txt $(CPDIR)/
#
########################################################################
#
model: $(OBJS2_MODEL)
# @echo $(OBJS2_MODEL)
$(LD) $(OBJS2_MODEL) $(OMP_FLAG) -L $(DIR_LIB_HDF5) -o model.eo
sc3d: $(OBJS2_SC3D)
$(LD) $(OBJS2_SC3D) $(OMP_FLAG) -L $(DIR_LIB_HDF5) -o sc3d.eo
spec: $(OBJS2_SPEC)
$(LD) $(OBJS2_SPEC) $(OMP_FLAG) -L $(DIR_LIB_HDF5) -o spec.eo
modelspec: $(OBJS2_MODELSPEC)
$(LD) $(OBJS2_MODELSPEC) $(OMP_FLAG) -L $(DIR_LIB_HDF5) -o modelspec.eo
spec_vbin: $(OBJS2_SPECVBIN)
$(LD) $(OBJS2_SPECVBIN) $(OMP_FLAG) -L $(DIR_LIB_HDF5) -o spec_vbin.eo
modelspec_vbin: $(OBJS2_MODELSPECVBIN)
$(LD) $(OBJS2_MODELSPECVBIN) $(OMP_FLAG) -L $(DIR_LIB_HDF5) -o modelspec_vbin.eo
#
########################################################################
#
$(DIR_OBJ)/mod_interp1d.o: $(DIR_SRC)/mod_interp1d.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $(MFLAGS) $(DIR_MOD) $< -o $(DIR_OBJ)/mod_interp1d.o
$(DIR_OBJ)/mod_interp2d.o: $(DIR_SRC)/mod_interp2d.f90 \
$(DIR_OBJ)/mod_interp1d.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $(MFLAGS) $(DIR_MOD) $< -o $(DIR_OBJ)/mod_interp2d.o
$(DIR_OBJ)/mod_interp3d.o: $(DIR_SRC)/mod_interp3d.f90 \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/info_region.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $(MFLAGS) $(DIR_MOD) $< -o $(DIR_OBJ)/mod_interp3d.o
$(DIR_OBJ)/mod_opacities.o: $(DIR_SRC)/mod_opacities.f90 \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/info_region.o \
$(DIR_OBJ)/mod_iline.o \
$(DIR_OBJ_LTE)/mod_lte.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) -I $(DIR_MOD_LTE) $(MFLAGS) $(DIR_MOD) $< -o $(DIR_OBJ)/mod_opacities.o
$(DIR_OBJ)/info_region.o: $(DIR_SRC)/info_region.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/info_region.o
$(DIR_OBJ)/mod_integ1d.o: $(DIR_SRC)/mod_integ1d.f90 \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/math.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $(MFLAGS) $(DIR_MOD) $< -o $(DIR_OBJ)/mod_integ1d.o
$(DIR_OBJ)/eispackEV.o: $(DIR_SRC)/eispackEV.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/eispackEV.o
$(DIR_OBJ)/geompack2.o: $(DIR_SRC)/geompack2.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/geompack2.o
$(DIR_OBJ)/lebedev.o: $(DIR_SRC)/lebedev.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/lebedev.o
$(DIR_OBJ)/lapackINV.o: $(DIR_SRC)/lapackINV.f
$(F90) $(CFLAGS) $< -o $(DIR_OBJ)/lapackINV.o
$(DIR_OBJ)/math.o: $(DIR_SRC)/math.f90 \
$(DIR_OBJ)/eispackEV.o \
$(DIR_OBJ)/mod_sort.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/math.o
$(DIR_OBJ)/mod_sort.o: $(DIR_SRC)/mod_sort.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $(MFLAGS) $(DIR_MOD) $< -o $(DIR_OBJ)/mod_sort.o
$(DIR_OBJ)/mod_grid.o: $(DIR_SRC)/mod_grid.f90 \
$(DIR_OBJ)/mod_sort.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $(MFLAGS) $(DIR_MOD) $< -o $(DIR_OBJ)/mod_grid.o
$(DIR_OBJ)/mod_amrvac_reader.o: $(DIR_SRC)/mod_amrvac_reader.f90 \
$(DIR_OBJ)/mod_sort.o \
$(DIR_OBJ)/mod_grid.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/mod_interp3d.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD) -I $(DIR_MOD) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ)/mod_amrvac_reader.o
$(DIR_OBJ)/sobolev1d.o: $(DIR_SRC)/sobolev1d.f90 \
$(DIR_OBJ)/mod_integ1d.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/sobolev1d.o
$(DIR_OBJ)/sobolev3d.o: $(DIR_SRC)/sobolev3d.f90 \
$(DIR_OBJ)/sobolev1d.o \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/mod_integ1d.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/sobolev3d.o
$(DIR_OBJ)/ng_extrapol.o: $(DIR_SRC)/ng_extrapol.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/ng_extrapol.o
$(DIR_OBJ)/formal_sc.o: $(DIR_SRC)/formal_sc.f90 \
$(DIR_OBJ)/mod_integ1d.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/mod_type.o \
$(DIR_OBJ)/mod_interp2d.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/formal_sc.o
$(DIR_OBJ)/model_laws.o: $(DIR_SRC)/model_laws.f90 \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/mod_opacities.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/model_laws.o
$(DIR_OBJ)/mod_iline.o: $(DIR_SRC)/mod_iline.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD) -I $(DIR_MOD) $< -o $(DIR_OBJ)/mod_iline.o
$(DIR_OBJ)/sparse.o: $(DIR_SRC)/sparse.f90 \
$(DIR_OBJ)/ng_extrapol.o \
$(DIR_OBJ)/math.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $< -o $(DIR_OBJ)/sparse.o
$(DIR_OBJ)/mod_type.o: $(DIR_SRC)/mod_type.f90
$(F90) $(CFLAGS) -I $(DIR_MOD) $(MFLAGS) $(DIR_MOD) $< -o $(DIR_OBJ)/mod_type.o
########################################################################
$(DIR_OBJ_OPAL)/mod_opal.o: $(DIR_SRC_OPAL)/mod_opal.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD_OPAL) -I $(DIR_MOD) $< -o $(DIR_OBJ_OPAL)/mod_opal.o
########################################################################
$(DIR_OBJ_LTE)/mod_lte.o: $(DIR_SRC_LTE)/mod_lte.f90 \
$(DIR_OBJ/mod_iline.o \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD_LTE) -I $(DIR_MOD) $< -o $(DIR_OBJ_LTE)/mod_lte.o
########################################################################
$(DIR_OBJ_MODEL)/mod_model.o: $(DIR_SRC_MODEL)/mod_model.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD_MODEL) -I $(DIR_MOD) -I $(DIR_MOD_HDF5) -I $(DIR_MOD_LTE) $< -o $(DIR_OBJ_MODEL)/mod_model.o
$(DIR_OBJ_MODEL)/model1d.o: $(DIR_SRC_MODEL)/model1d.f90 \
$(DIR_OBJ)/model_laws.o \
$(OBJSM_MODEL)
$(F90) $(CFLAGS) -I $(DIR_MOD_MODEL) -I $(DIR_MOD) $< -o $(DIR_OBJ_MODEL)/model1d.o
$(DIR_OBJ_MODEL)/model2d.o: $(DIR_SRC_MODEL)/model2d.f90 \
$(DIR_OBJ)/model_laws.o \
$(OBJSM_MODEL)
$(F90) $(CFLAGS) -I $(DIR_MOD_MODEL) -I $(DIR_MOD) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_MODEL)/model2d.o
$(DIR_OBJ_MODEL)/model3d.o: $(DIR_SRC_MODEL)/model3d.f90 \
$(OBJSM_MODEL)
$(F90) $(CFLAGS) -I $(DIR_MOD_MODEL) -I $(DIR_MOD) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_MODEL)/model3d.o
$(DIR_OBJ_MODEL)/model_output.o: $(DIR_SRC_MODEL)/model_output.f90 \
$(OBJSM_MODEL)
$(F90) $(CFLAGS) -I $(DIR_MOD_MODEL) -I $(DIR_MOD) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_MODEL)/model_output.o
$(DIR_OBJ_MODEL)/model.o: $(DIR_SRC_MODEL)/model.f90 \
$(OBJSM_MODEL) \
$(OBJS1_MODEL)
$(F90) $(CFLAGS) -I $(DIR_MOD_MODEL) -I $(DIR_MOD) $< -o $(DIR_OBJ_MODEL)/model.o
########################################################################
$(DIR_OBJ_SC3D)/mod_sc3d.o: $(DIR_SRC_SC3D)/mod_sc3d.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD_SC3D) -I $(DIR_MOD) -I $(DIR_MOD_LTE) $< -o $(DIR_OBJ_SC3D)/mod_sc3d.o
$(DIR_OBJ_SC3D)/anglenodes.o: $(DIR_SRC_SC3D)/anglenodes.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/lebedev.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/anglenodes.o
$(DIR_OBJ_SC3D)/formal_sc2d.o: $(DIR_SRC_SC3D)/formal_sc2d.f90 \
$(DIR_OBJ)/math.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/formal_sc2d.o
$(DIR_OBJ_SC3D)/formal_sc3d.o: $(DIR_SRC_SC3D)/formal_sc3d.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/model_laws.o \
$(DIR_OBJ)/mod_opacities.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/formal_sc3d.o
$(DIR_OBJ_SC3D)/formal_fvm2d.o: $(DIR_SRC_SC3D)/formal_fvm2d.f90 \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/formal_fvm2d.o
$(DIR_OBJ_SC3D)/formal_fvm3d.o: $(DIR_SRC_SC3D)/formal_fvm3d.f90 \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/formal_fvm3d.o
$(DIR_OBJ_SC3D)/output_sc3d.o: $(DIR_SRC_SC3D)/output_sc3d.f90 \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_SC3D)/output_sc3d.o
$(DIR_OBJ_SC3D)/mint_sc3d.o: $(DIR_SRC_SC3D)/mint_sc3d.f90 \
$(DIR_OBJ_SC3D)/formal_sc3d.o \
$(DIR_OBJ_SC3D)/scont_new3d.o \
$(DIR_OBJ_SC3D)/sline_new3d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/mint_sc3d.o
$(DIR_OBJ_SC3D)/mint_fvm3d.o: $(DIR_SRC_SC3D)/mint_fvm3d.f90 \
$(DIR_OBJ_SC3D)/formal_fvm3d.o \
$(DIR_OBJ_SC3D)/scont_new3d.o \
$(DIR_OBJ_SC3D)/sline_new3d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/mint_fvm3d.o
$(DIR_OBJ_SC3D)/scont_new3d.o: $(DIR_SRC_SC3D)/scont_new3d.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/sparse.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/scont_new3d.o
$(DIR_OBJ_SC3D)/sline_new3d.o: $(DIR_SRC_SC3D)/sline_new3d.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/sparse.o \
$(DIR_OBJ)/mod_interp2d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/sline_new3d.o
$(DIR_OBJ_SC3D)/grid_delxyz.o: $(DIR_SRC_SC3D)/grid_delxyz.f90 \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/grid_delxyz.o
$(DIR_OBJ_SC3D)/grid_spatial.o: $(DIR_SRC_SC3D)/grid_spatial.f90 \
$(DIR_OBJ)/mod_sort.o \
$(DIR_OBJ)/mod_grid.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/model_laws.o \
$(DIR_OBJ_SC3D)/model_sc3d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_SC3D)/grid_spatial.o
$(DIR_OBJ_SC3D)/model_sc3d.o: $(DIR_SRC_SC3D)/model_sc3d.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/mod_opacities.o \
$(DIR_OBJ)/info_region.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_SC3D)/model_sc3d.o
$(DIR_OBJ_SC3D)/tests.o: $(DIR_SRC_SC3D)/tests.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/mod_interp1d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_SC3D)/tests.o
$(DIR_OBJ_SC3D)/benchmark01.o: $(DIR_SRC_SC3D)/benchmark01.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/formal_sc.o \
$(DIR_OBJ_SC3D)/formal_sc2d.o \
$(DIR_OBJ_SC3D)/formal_fvm2d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark01.o
$(DIR_OBJ_SC3D)/benchmark02.o: $(DIR_SRC_SC3D)/benchmark02.f90 \
$(DIR_OBJ)/formal_sc.o \
$(DIR_OBJ_SC3D)/formal_sc2d.o \
$(DIR_OBJ_SC3D)/formal_fvm2d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark02.o
$(DIR_OBJ_SC3D)/benchmark03.o: $(DIR_SRC_SC3D)/benchmark03.f90 \
$(DIR_OBJ)/formal_sc.o \
$(DIR_OBJ_SC3D)/formal_sc2d.o \
$(DIR_OBJ_SC3D)/formal_fvm2d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark03.o
$(DIR_OBJ_SC3D)/benchmark04.o: $(DIR_SRC_SC3D)/benchmark04.f90 \
$(DIR_OBJ)/formal_sc.o \
$(DIR_OBJ_SC3D)/formal_sc2d.o \
$(DIR_OBJ_SC3D)/formal_fvm2d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark04.o
$(DIR_OBJ_SC3D)/benchmark05.o: $(DIR_SRC_SC3D)/benchmark05.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/formal_sc.o \
$(DIR_OBJ_SC3D)/formal_sc2d.o \
$(DIR_OBJ_SC3D)/formal_fvm2d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark05.o
$(DIR_OBJ_SC3D)/benchmark06.o: $(DIR_SRC_SC3D)/benchmark06.f90 \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/formal_sc.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark06.o
$(DIR_OBJ_SC3D)/benchmark07.o: $(DIR_SRC_SC3D)/benchmark07.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/sobolev1d.o \
$(DIR_OBJ)/sobolev3d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark07.o
$(DIR_OBJ_SC3D)/benchmark08.o: $(DIR_SRC_SC3D)/benchmark08.f90 \
$(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/formal_sc.o \
$(DIR_OBJ)/sobolev1d.o \
$(DIR_OBJ)/sobolev3d.o \
$(DIR_OBJ_SC3D)/formal_sc2d.o \
$(DIR_OBJ_SC3D)/formal_fvm2d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark08.o
$(DIR_OBJ_SC3D)/benchmark09.o: $(DIR_SRC_SC3D)/benchmark09.f90 \
$(DIR_OBJ)/sobolev3d.o \
$(DIR_OBJ_SC3D)/formal_sc2d.o \
$(DIR_OBJ_SC3D)/formal_fvm2d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark09.o
$(DIR_OBJ_SC3D)/benchmark10.o: $(DIR_SRC_SC3D)/benchmark10.f90 \
$(DIR_OBJ)/mod_interp2d.o \
$(DIR_OBJ)/formal_sc.o \
$(DIR_OBJ_SC3D)/formal_sc3d.o \
$(DIR_OBJ_SC3D)/formal_fvm3d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark10.o
$(DIR_OBJ_SC3D)/benchmark11.o: $(DIR_SRC_SC3D)/benchmark11.f90 \
$(DIR_OBJ_SC3D)/mint_sc3d.o \
$(DIR_OBJ_SC3D)/mint_fvm3d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark11.o
$(DIR_OBJ_SC3D)/benchmark12.o: $(DIR_SRC_SC3D)/benchmark12.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/ng_extrapol.o \
$(DIR_OBJ_SC3D)/scont_new3d.o \
$(DIR_OBJ_SC3D)/mint_sc3d.o \
$(DIR_OBJ_SC3D)/mint_fvm3d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark12.o
$(DIR_OBJ_SC3D)/benchmark13.o: $(DIR_SRC_SC3D)/benchmark13.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/ng_extrapol.o \
$(DIR_OBJ_SC3D)/sline_new3d.o \
$(DIR_OBJ_SC3D)/mint_sc3d.o \
$(DIR_OBJ_SC3D)/mint_fvm3d.o \
$(DIR_OBJ)/sobolev3d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark13.o
$(DIR_OBJ_SC3D)/benchmark14.o: $(DIR_SRC_SC3D)/benchmark14.f90 \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/ng_extrapol.o \
$(DIR_OBJ_SC3D)/sline_new3d.o \
$(DIR_OBJ_SC3D)/mint_sc3d.o \
$(DIR_OBJ_SC3D)/mint_fvm3d.o \
$(DIR_OBJ)/sobolev3d.o \
$(OBJSM_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/benchmark14.o
$(DIR_OBJ_SC3D)/sc3d.o: $(DIR_SRC_SC3D)/sc3d.f90 \
$(OBJSM_SC3D) \
$(OBJS1_SC3D)
$(F90) $(CFLAGS) -I $(DIR_MOD_SC3D) -I $(DIR_MOD) $< -o $(DIR_OBJ_SC3D)/sc3d.o
########################################################################
$(DIR_OBJ_PHOTPROF)/mod_photprof.o: $(DIR_SRC_PHOTPROF)/mod_photprof.f90
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD_PHOTPROF) -I $(DIR_MOD) $< -o $(DIR_OBJ_PHOTPROF)/mod_photprof.o
$(DIR_OBJ_PHOTPROF)/phot_profile.o: $(DIR_SRC_PHOTPROF)/phot_profile.f90 \
$(OBJSM_PHOTPROF) \
$(OBJS1_PHOTPROF)
$(F90) $(CFLAGS) -I $(DIR_MOD_PHOTPROF) -I $(DIR_MOD) $< -o $(DIR_OBJ_PHOTPROF)/phot_profile.o
########################################################################
$(DIR_OBJ_SPEC)/formal_lc.o: $(DIR_SRC_SPEC)/formal_lc.f90 \
$(OBJSM_SPEC)
$(F90) $(CFLAGS) -I $(DIR_MOD_SPEC) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPEC)/formal_lc.o
$(DIR_OBJ_SPEC)/spec_tests.o: $(DIR_SRC_SPEC)/spec_tests.f90 \
$(DIR_OBJ_SPEC)/formal_lc.o \
$(OBJSM_SPEC)
$(F90) $(CFLAGS) -I $(DIR_MOD_SPEC) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPEC)/spec_tests.o
$(DIR_OBJ_SPEC)/spec_input.o: $(DIR_SRC_SPEC)/spec_input.f90 \
$(DIR_OBJ)/model_laws.o \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/info_region.o \
$(OBJSM_SPEC)
$(F90) $(CFLAGS) -I $(DIR_MOD) -I $(DIR_MOD_SPEC) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_SPEC)/spec_input.o
$(DIR_OBJ_SPEC)/spec_output.o: $(DIR_SRC_SPEC)/spec_output.f90 \
$(OBJSM_SPEC)
$(F90) $(CFLAGS) -I $(DIR_MOD) -I $(DIR_MOD_SPEC) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_SPEC)/spec_output.o
$(DIR_OBJ_SPEC)/spec.o: $(DIR_SRC_SPEC)/spec.f90 \
$(OBJSM_SPEC) \
$(OBJS1_SPEC)
$(F90) $(CFLAGS) -I $(DIR_MOD_SPEC) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPEC)/spec.o
$(DIR_OBJ_SPEC)/mod_spec.o: $(DIR_SRC_SPEC)/mod_spec.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) -I $(DIR_MOD) $(MFLAGS) $(DIR_MOD_SPEC) $< -o $(DIR_OBJ_SPEC)/mod_spec.o
########################################################################
$(DIR_OBJ_MODELSPEC)/modelspec.o: $(DIR_SRC_MODELSPEC)/modelspec.f90 \
$(OBJSM_MODELSPEC) \
$(OBJS1_MODELSPEC)
$(F90) $(CFLAGS) -I $(DIR_MOD) -I $(DIR_MOD_MODELSPEC) -I $(DIR_MOD_HDF5) -I $(DIR_MOD_OPAL) -I $(DIR_MOD_LTE) $< -o $(DIR_OBJ_MODELSPEC)/modelspec.o
$(DIR_OBJ_MODELSPEC)/mod_modelspec.o: $(DIR_SRC_MODELSPEC)/mod_modelspec.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD_MODELSPEC) -I $(DIR_MOD) $< -o $(DIR_OBJ_MODELSPEC)/mod_modelspec.o
########################################################################
$(DIR_OBJ_SPECVBIN)/formal_lc.o: $(DIR_SRC_SPECVBIN)/formal_lc.f90 \
$(OBJSM_SPECVBIN)
$(F90) $(CFLAGS) -I $(DIR_MOD_SPECVBIN) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPECVBIN)/formal_lc.o
$(DIR_OBJ_SPECVBIN)/spec_tests.o: $(DIR_SRC_SPECVBIN)/spec_tests.f90 \
$(DIR_OBJ_SPECVBIN)/formal_lc.o \
$(OBJSM_SPECVBIN)
$(F90) $(CFLAGS) -I $(DIR_MOD_SPECVBIN) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPECVBIN)/spec_tests.o
$(DIR_OBJ_SPECVBIN)/spec_triangulation.o: $(DIR_SRC_SPECVBIN)/spec_triangulation.f90 \
$(DIR_OBJ)/geompack2.o \
$(OBJSM_SPECVBIN)
$(F90) $(CFLAGS) -I $(DIR_MOD_SPECVBIN) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPECVBIN)/spec_triangulation.o
$(DIR_OBJ_SPECVBIN)/spec_transformations.o: $(DIR_SRC_SPECVBIN)/spec_transformations.f90 \
$(OBJSM_SPECVBIN)
$(F90) $(CFLAGS) -I $(DIR_MOD_SPECVBIN) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPECVBIN)/spec_transformations.o
$(DIR_OBJ_SPECVBIN)/spec_setupray3d.o: $(DIR_SRC_SPECVBIN)/spec_setupray3d.f90 \
$(DIR_OBJ_SPECVBIN)/spec_transformations.o \
$(DIR_OBJ)/info_region.o \
$(DIR_OBJ)/math.o \
$(OBJSM_SPECVBIN)
$(F90) $(CFLAGS) -I $(DIR_MOD_SPECVBIN) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPECVBIN)/spec_setupray3d.o
$(DIR_OBJ_SPECVBIN)/spec_input.o: $(DIR_SRC_SPECVBIN)/spec_input.f90 \
$(DIR_OBJ)/model_laws.o $(DIR_OBJ)/mod_interp1d.o \
$(DIR_OBJ)/math.o \
$(DIR_OBJ)/info_region.o \
$(OBJSM_SPECVBIN)
$(F90) $(CFLAGS) -I $(DIR_MOD) -I $(DIR_MOD_SPECVBIN) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_SPECVBIN)/spec_input.o
$(DIR_OBJ_SPECVBIN)/spec_output.o: $(DIR_SRC_SPECVBIN)/spec_output.f90 \
$(OBJSM_SPECVBIN)
$(F90) $(CFLAGS) -I $(DIR_MOD) -I $(DIR_MOD_SPECVBIN) -I $(DIR_MOD_HDF5) $< -o $(DIR_OBJ_SPECVBIN)/spec_output.o
$(DIR_OBJ_SPECVBIN)/spec.o: $(DIR_SRC_SPECVBIN)/spec.f90 \
$(OBJSM_SPECVBIN) \
$(OBJS1_SPECVBIN)
$(F90) $(CFLAGS) -I $(DIR_MOD_SPECVBIN) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPECVBIN)/spec.o
$(DIR_OBJ_SPECVBIN)/mod_spec.o: $(DIR_SRC_SPECVBIN)/mod_spec.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD_SPECVBIN) -I $(DIR_MOD) $< -o $(DIR_OBJ_SPECVBIN)/mod_spec.o
########################################################################
$(DIR_OBJ_MODELSPECVBIN)/modelspec.o: $(DIR_SRC_MODELSPECVBIN)/modelspec.f90 \
$(OBJSM_MODELSPECVBIN) \
$(OBJS1_MODELSPECVBIN)
$(F90) $(CFLAGS) -I $(DIR_MOD) -I $(DIR_MOD_MODELSPECVBIN) -I $(DIR_MOD_HDF5) -I $(DIR_MOD_LTE) $< -o $(DIR_OBJ_MODELSPECVBIN)/modelspec.o
$(DIR_OBJ_MODELSPECVBIN)/mod_modelspec.o: $(DIR_SRC_MODELSPECVBIN)/mod_modelspec.f90 \
$(OBJSM_TYPE)
$(F90) $(CFLAGS) $(MFLAGS) $(DIR_MOD_MODELSPECVBIN) -I $(DIR_MOD) $< -o $(DIR_OBJ_MODELSPECVBIN)/mod_modelspec.o
########################################################################
# inputparam.mod gridstratrev.mod comvelo.mod comtluc.mod
.PHONY: clean cleanall
clean:
rm -f *.o *~ *.mod \#*
rm -f $(DIR_OBJ)/*.o $(DIR_OBJ)/*~ $(DIR_OBJ)/*.mod
rm -f $(DIR_OBJ_MODEL)/*.o $(DIR_OBJ_MODEL)/*~ $(DIR_OBJ_MODEL)/*.mod
rm -f $(DIR_OBJ_SC3D)/*.o $(DIR_OBJ_SC3D)/*~ $(DIR_OBJ_SC3D)/*.mod $(DIR_MOD_SC3D)/*.mod
rm -f $(DIR_OBJ_PHOTPROF)/*.o $(DIR_OBJ_PHOTPROF)/*~ $(DIR_OBJ_PHOTPROF)/*.mod $(DIR_MOD_PHOTPROF)/*.mod
rm -f $(DIR_OBJ_SPEC)/*.o $(DIR_OBJ_SPEC)/*~ $(DIR_OBJ_SPEC)/*.mod $(DIR_MOD_SPEC)/*.mod
rm -f $(DIR_OBJ_MODELSPEC)/*.o $(DIR_OBJ_MODELSPEC)/*~ $(DIR_OBJ_MODELSPEC)/*.mod $(DIR_MOD_MODELSPEC)/*.mod
rm -f $(DIR_OBJ_SPECVBIN)/*.o $(DIR_OBJ_SPECVBIN)/*~ $(DIR_OBJ_SPECVBIN)/*.mod $(DIR_MOD_SPECVBIN)/*.mod
rm -f $(DIR_OBJ_MODELSPECVBIN)/*.o $(DIR_OBJ_MODELSPECVBIN)/*~ $(DIR_OBJ_MODELSPECVBIN)/*.mod $(DIR_MOD_MODELSPECVBIN)/*.mod
rm -f $(DIR_OBJ_OPAL)/*.o $(DIR_OBJ_OPAL)/*~ $(DIR_OBJ_OPAL)/*.mod $(DIR_MOD_OPAL)/*.mod
rm -f $(DIR_OBJ_LTE)/*.o $(DIR_OBJ_LTE)/*~ $(DIR_OBJ_LTE)/*.mod $(DIR_MOD_LTE)/*.mod
rm -f $(DIR_MOD)/*.o $(DIR_MOD)/*~ $(DIR_MOD)/*.mod
rm -f $(DIR_MOD_MODEL)/*.o $(DIR_MOD_MODEL)/*~ $(DIR_MOD_MODEL)/*.mod