-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
1825 lines (1718 loc) · 60.3 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
##################################################################
# Oslo CTM3
# Makefile for at least one platform.
##################################################################
#
# Does not use a dependency generator, but lists specific
# dependencies at the bottom of the file.
#
# Tested and works on UiO linux cluster Abel.
#
# Ole Amund Sovde, September 2008 - November 2015
##################################################################
#Get machine info
UNAMES = $(shell uname -s)
UNAMEM = $(shell uname -m)
UNAMEN = $(shell uname -n)
MYNAME = $(shell whoami)
AMDPROC = $(shell grep -i AMD /proc/cpuinfo)
INTELPROC= $(shell grep -i Intel /proc/cpuinfo)
#Set file names
MAKEFILE = Makefile
MAIN = osloctm3
PROGNAME = Oslo CTM3
COMPDIR = $(shell pwd)
##################################################################
#--- SET USER CHOICES (NO SPACES BEFORE OR AFTER Y/N SIGNS) ------
#-----------------------------------------------------------------
#Compiler options O=Optimize, D=Debug, A=Agressive optimization
OPTS :=A
#Native (metdata) horizontal resolution (HNATIVET42 / HNATIVET159 / ...)
HNATIVE :=HNATIVET159
#Native (metdata) vertical resolution (L40 / L60)
VNATIVE :=VNATIVEL60
#
#CTM run resolution (degrade horizontal, collapse vertical)
#Horizontal resolution (HORIGINAL/HTWO/HFOUR)
HWINDOW :=HTWO
#Collapse layer 1:3 and 4:5?
COLLAPSE :=N
#-----------------------------------------------------------------
#Compile with Oslo chemistry/physics
OSLOCHEM :=Y
#Compile with Oslo tropospheric chemistry
TROPCHEM :=Y
#Compile with Oslo stratospheric chemistry
STRATCHEM :=Y
#Sulfur scheme
SULPHUR :=Y
#BC/OC
BCOC :=N
#Nitrate (requires SALT and SULPHUR)
NITRATE :=Y
#Sea salt
SEASALT :=Y
#Dust
DUST :=N
#Secondary organic aerosols
SOA :=N
#E90 (MUST be Y to calculate STE fluxes!)
E90 :=Y
#LINOZ (NOT set up to replace stratospheric chemistry, only included
# to calculate STE flux as UCI does it.
LINOZ :=N
#-----------------------------------------------------------------
#M7 (not implemented)
M7 :=N
#-----------------------------------------------------------------
#Lightning scaling factors: To produce lightning scaling factors,
#turn off all the above (except OC) and set LIT:=Y (sets NPAR=1).
#You should also remove all transport calls from pmain.f90, e.g.
#in a file pmain_lit.f90, and update Makefile accordingly.
#Also set getFlashFiles = .true. in lightning.f90.
LIT :=N
#-----------------------------------------------------------------
#Emission & dry deposition treatment (U=UCI, O=OSLO)
#UCI: Separate processes, OSLO: Production and loss terms in chemistry
#Note that SALT and DUST use OSLO approach anyway.
EMISDEP_TREATMENT :=O
#-----------------------------------------------------------------
#Fortran compiler (ifort, pgf90)
FC=ifort
#FC=pgf90
#-----------------------------------------------------------------
#Object files are stored in their source directories
#--- END USER CHOICES --------------------------------------------
##################################################################
##################################################################
#Normally you don't need to touch anything below this line.
##################################################################
#-----------------------------------------------------------------
#--- INITIALIZATIONS ---------------------------------------------
#-----------------------------------------------------------------
null=
space=$(null) $(null)
kolon=$(null):$(null)
#Directory where object files are put during compilation
MY_OBJ_DIR:=bin
#Directory where .mod files can be put during compilation
MY_MOD_DIR:=mod
#Initialize includes
INCLUDES :=-I./
#Initialize LDFLAGS (Libraries needed when linking object files)
LDFLAGS :=
#-----------------------------------------------------------------
#-----------------------------------------------------------------
#--- COMPILER OPTIONS --------------------------------------------
#-----------------------------------------------------------------
# Sets the right compiler and compiler options for the right
# architecture. In general these are machine dependent things, but
# you may want to change the name of the compiler for the given
# architecture.
#-----------------------------------------------------------------
#--- LINUX MACHINES ----------------------------------------------
ifeq ($(UNAMES),Linux)
# First specific options for 64/32 bits
ifneq ($(null),$(findstring _64,$(UNAMEM)))
# === 64 bit === x86_64 ===
ifneq ($(null),$(findstring uci.edu,$(UNAMEN)))
#UCI
NETCDF_LIB=netCDF/lib
NETCDF_LIB=netCDF/include
NETCDF_LLIBS=-lnetcdf
endif #UCI netCDF
ifneq ($(null),$(findstring .local,$(UNAMEN)))
#UiO Abel nodes
NETCDF_INC=$(NETCDF_ROOT)/include
NETCDF_LIB=$(NETCDF_ROOT)/lib
NETCDF_LLIBS=-lnetcdff -lnetcdf
endif
ifneq ($(null),$(findstring login-,$(UNAMEN)))
#UiO SAGA nodes
NETCDF_INC=$(NETCDF_ROOT)/include
NETCDF_LIB=$(NETCDF_ROOT)/lib
NETCDF_LLIBS=-lnetcdff -lnetcdf
endif
ifneq ($(null),$(findstring .hpc.uio.,$(UNAMEN)))
#UiO enso/nao
NETCDF_INC=$(NETCDF_ROOT)/include
NETCDF_LIB=$(NETCDF_ROOT)/lib
NETCDF_LLIBS=-lnetcdff -lnetcdf
endif
endif
# === END 64 bit === x86_64 ===
# === 32 bit not available ===
# *** IFORT ******************************************************
ifeq ($(FC),ifort)
CC=cc
FIXEDFLAGS = -fixed
FREEFLAGS = -free
#
# intel version 10-15
#STDOPTS= -auto -fpp -mcmodel=large -shared-intel -mp1 -module $(MY_MOD_DIR)
#FCOPT = -inline-forceinline -ip -O2 -openmp -ftz -fno-alias -fomit-frame-pointer
#FCAGR = -inline-forceinline -ip -O3 -openmp -ftz -fno-alias -fomit-frame-pointer
#DEBUG = -check bounds -check uninit -traceback -openmp -g
#
# intel version >= 17
STDOPTS= -auto -fpp -mcmodel=large -shared-intel -mp1 -module $(MY_MOD_DIR)
FCOPT = -inline-forceinline -ip -O2 -qopenmp -ftz -fno-alias -fomit-frame-pointer
FCAGR = -inline-forceinline -ip -O3 -qopenmp -ftz -fno-alias -fomit-frame-pointer
DEBUG = -check bounds -check uninit -traceback -qopenmp -g
#
#Special x86_64 options:
ifneq ($(null),$(findstring _64,$(UNAMEM)))
#intel processor?
ifneq ($(null),$(INTELPROC))
FCOPT +=
FCAGR +=
endif #check on intel processor
#AMD processor?
ifneq ($(null),$(AMDPROC))
FCOPT+=
FCAGR+=
endif #check on AMD processor
endif #check on Special x86_64 options
endif #check on ifort compiler
# *** END IFORT **************************************************
# *** PORTLAND (PGI) *********************************************
ifeq ($(FC),pgf90)
#INCLUDES += -I/usr/lib64
#LDFLAGS += -L/usr/lib64 -lnuma
CC=pgcc
FIXEDFLAGS = -Mfixed
FREEFLAGS = -Mfree
STDOPTS = -mcmodel=medium -Mdepchk
FCOPT = -O2 -Mprefetch -Minline=reshape
FCAGR = -O3 -mp -Mprefetch -Minline -Munroll
# -Mvect=sse does not work for some loops
DEBUG = -Mbounds -g
#Check if you are on titan==> some more options apply
ifneq ($(null),$(findstring _64,$(UNAMEM)))
FCOPT +=
FCAGR +=
endif #check on titan
endif #check on using pgf90 compiler
# *** END PORTLAND (PGI) *****************************************
endif #check on linux
#--- END LINUX MACHINES ------------------------------------------
#--- COMPILER FLAGS ----------------------------------------------
# Use Optimization or Debug
ifeq ($(OPTS),A)
OPTFLAGS=$(FCAGR)
endif
ifeq ($(OPTS),O)
OPTFLAGS=$(FCOPT)
endif
ifeq ($(OPTS),D)
OPTFLAGS=$(DEBUG)
endif
#INCLUDE LIBRARIES (e.g. netCDF)
INCLUDES += -I$(NETCDF_INC)
LDFLAGS += -L$(NETCDF_LIB) $(NETCDF_LLIBS)
# Token for collapsing layers
ifeq ($(COLLAPSE),Y)
DEGRADE_TKN := -DCOLLAPSE
endif
#--- END COMPILER FLAGS ------------------------------------------
#-----------------------------------------------------------------
#--- END COMPILER OPTIONS ----------------------------------------
#-----------------------------------------------------------------
##################################################################
#-----------------------------------------------------------------
#--- SOURCE FILES ------------------------------------------------
#-----------------------------------------------------------------
# Initialize list of all directories in use
ALL_DIRS:=
#------------------ CORE -----------------------------------------
# List of source files. Some have changed from UCI to CTM3 (_oc-files)
CORE_SRC := \
cmn_precision.f90 \
cmn_size.F90 \
cmn_ctm.f90 \
cmn_met.f90 \
cmn_chem.f90 \
cmn_diag.f90 \
cmn_fjx.f90 \
cmn_sfc.f90 \
cmn_parameters.f90 \
utilities.f90 \
averages.f90 \
budgets.f90 \
cloudjx.f90 \
p-cloud2.f \
convection.f90 \
p-dyn0.f \
p-dyn2.f \
fastjx.f90 \
initialize.f90 \
regridding.f90 \
grid.f90 \
p-linoz.f \
lightning.f90 \
pmain.f90 \
omp.f90 \
pbl_mixing.f90 \
p-phot_oc.f \
scavenging_drydep_uci.f90 \
scavenging_largescale_uci.f90 \
p-series.f \
source_uci.f90 \
p-vect3.f \
steflux.f90 \
spectral_routines.f \
stt_save_load.f90 \
metdata_ecmwf.f90
#------------------ END CORE -------------------------------------
#------------------ OSLO CHEMISTRY -------------------------------
# The use of DUMMY routines is essential to Oslo CTM3. Learn how
# to use them.
#-----------------------------------------------------------------
ifeq ($(OSLOCHEM),Y)
# Initialize source code list
OSLO_SRC :=
# Oslo chemistry source path
OSLO_PATH:= OSLO
# Add to ALL_DIRS
ALL_DIRS += $(OSLO_PATH)
# Search for includes in this directory
INCLUDES += -I$(OSLO_PATH)
# Token for compiling params.h
OSLO_TKN := -DOSLOCHEM
# Path for DUMMIES
OSLODUM_PATH := DUMMIES
# Add to ALL_DIRS
ALL_DIRS += $(OSLO_PATH)/$(OSLODUM_PATH)
# CTM3 core -----------------------------------------
# First list utilities used by other routines.
# List of source files. The order is arbitrary, just remember to
# specify dependencies at the bottom of the Makefile.
OSLO_SRC := \
cmn_oslo.f90 \
cnv_oslo.f90 \
dateconv.f90 \
atom.f90 \
caribic2.f90 \
diagnostics_general.f90 \
diagnostics_scavenging.f90 \
drydeposition_oslo.f90 \
gmdump3hrs.f90 \
emissions_aircraft.f90 \
emissions_megan.f90 \
emissions_ocean.f90 \
emissions_oslo.f90 \
emissions_volcanoes.f90 \
emisutils_oslo.f90 \
fallingaerosols.f90 \
input_oslo.f90 \
main_oslo.f90 \
ncutils.f90 \
physics_oslo.f90 \
qssa_integrator.f90 \
ch4routines.f90 \
satelliteprofiles_mls.f90 \
seasaltprod.f90 \
strat_aerosols.f90 \
strat_h2o.f90 \
strat_loss.f90 \
troccinox_ban.f90 \
troccinox_fal.f90 \
troccinox_geo.f90 \
utilities_oslo.f90 \
verticalprofiles_stations2.f90 \
aerosols2fastjx.f90 \
hippo.f90
# Add packages / dummies ----------------------------
# Sulphur -------------------------------------------
ifeq ($(SULPHUR),Y)
OSLO_SRC += sulphur_oslo.f90
OSLO_TKN += -DSULPHUR
else
OSLO_SRC += \
$(OSLODUM_PATH)/sulphur_oslo.f90
endif
# Emission & drydeposition treatment ---------------
# Check only for O; assume U if not.
ifeq ($(EMISDEP_TREATMENT),O)
OSLO_TKN += -DEMISDEPCHEM
OSLO_SRC += emisdep4chem_oslo.f90
else
OSLO_SRC += $(OSLODUM_PATH)/emisdep4chem_oslo.f90
endif
# Tropospheric chemistry ----------------------------
ifeq ($(TROPCHEM),Y)
OSLO_SRC += \
tropchem_oslo.f90 \
chem_oslo_rates.f90 \
pchemc_ij.f90
OSLO_TKN += -DTROPCHEM
else
OSLO_SRC += \
$(OSLODUM_PATH)/chem_oslo_rates.f90 \
$(OSLODUM_PATH)/tropchem_oslo.f90
endif
# Stratospheric chemistry ---------------------------
ifeq ($(STRATCHEM),Y)
OSLO_SRC += \
psc_microphysics.f90 \
stratchem_oslo.f90 \
$(OSLODUM_PATH)/strat_o3noy_clim.f90 \
pchemc_str_ij.f90
OSLO_TKN += -DSTRATCHEM
else
OSLO_SRC += \
$(OSLODUM_PATH)/stratchem_oslo.f90 \
strat_o3noy_clim.f90 \
$(OSLODUM_PATH)/psc_microphysics.f90
endif
# M7 ------------------------------------------------
ifeq ($(M7),Y)
M7_TKN := -DM7
endif
# BCOC ----------------------------------------------
ifeq ($(BCOC),Y)
OSLO_SRC += bcoc_oslo.f90
OSLO_TKN += -DBCOC
else
OSLO_SRC += $(OSLODUM_PATH)/bcoc_oslo.f90
endif
# SOA ----------------------------------------------
ifeq ($(SOA),Y)
OSLO_SRC += soa_oslo.f90
OSLO_TKN += -DSOA
else
OSLO_SRC += $(OSLODUM_PATH)/soa_oslo.f90
endif
# SEA SALT ------------------------------------------
ifeq ($(SEASALT),Y)
OSLO_SRC += seasalt.f90
OSLO_TKN += -DSEASALT
else
OSLO_SRC += $(OSLODUM_PATH)/seasalt.f90
endif
# Nitrate -------------------------------------------
ifeq ($(NITRATE),Y)
OSLO_SRC += \
eqsam_v03d.f90 \
nitrate.f90
OSLO_TKN += -DNITRATE
else
OSLO_SRC += \
$(OSLODUM_PATH)/nitrate.f90
endif
# DUST ----------------------------------------------
# Number of DUST species: default=8, M7=2
ifeq ($(DUST),Y)
OSLO_SRC += dust_oslo.f90
OSLO_TKN += -DDUST
# Alfaro & Gomes Sandblasting: add -DAlG01 to OSLO_TKN
# Directory for DUST/DEAD
DUST_PATH := $(OSLO_PATH)/DEAD_COLUMN
# Includes for separate DUST compilation; may add -DDST_DBG
DUST_INC := -I$(DUST_PATH) -I$(NETCDF_INC) -I$(NETCDF_LIB) -D$(HNATIVE) \
-D$(HWINDOW) -D$(VNATIVE) -DDST $(DEGRADE_TKN) $(M7_TKN)
# DUST source file list
DUST_LIST = \
dead_precision.F90 pmgrid.F dstgrd.F90 dstdbg.F90 \
dbg_mdl.F90 sng_mdl.F90 xtr_mdl.F90 utl_mdl.F90 \
dstctl.F90 dstcst.F90 vec_mdl.F90 dpsdryutl.F90 \
erf_mdl.F90 psdlgn.F90 dstaer.F90 nf90_utl.F90 \
dstpsd.F90 dstodx.F90 dstchm.F90 dstbdg.F90 \
dstmssutl.F90 dstblm.F90 dstnm.F90 dead_history.f90 \
dstlsm.F90 blmutl.F90 dstscv.F90 dstsltsbl.F90 \
dstcmnini.F90 dsttvbds.F90 dstsfc.F90 dsttibds.F90 \
dstdpsdry.F90 dstmblutl.F90 gmm_mdl.F90 wbl_mdl.F90 \
dstmbl.F90 dead_inirun.f90
# aer.F90 qneg.F aernvr.F90 dstdpswet.F90 dstrad.F90 phyzlic.F90
# Expand source list with DUST_PATH
DUST_SRC := $(addprefix $(DUST_PATH)/,$(DUST_LIST))
# Dust objects
DUST_OBJ= $(addprefix $(MY_OBJ_DIR)/,$(addsuffix .o,$(basename $(DUST_SRC))))
# Dust paths
DUSTOBJDIRS:= $(addprefix $(MY_OBJ_DIR)/, $(DUST_PATH))
# Add to ALL_DIRS
ALL_DIRS += $(DUST_PATH)
else
# Dust dummy
OSLO_SRC += $(OSLODUM_PATH)/dust_oslo.f90
endif
# E90 ------------------------------------------------------------
ifeq ($(E90),Y)
OSLO_TKN += -DE90
endif
# LINOZ ----------------------------------------------------------
ifeq ($(LINOZ),Y)
OSLO_TKN += -DLINOZ
endif
# LIGTHNING generation / read-through ----------------------------
ifeq ($(LIT),Y)
OSLO_TKN += -DLITGEN
endif
endif # ifeq ($(OSLOCHEM),Y)
#------------------ END OSLO CHEMISTRY ---------------------------
#------------------ Update ALL_OBJ & VPATH -----------------------
# All source files
ALL_SRC:= \
$(CORE_SRC) \
$(DUST_SRC) \
$(addprefix $(OSLO_PATH)/,$(OSLO_SRC))
# All object files
ALL_OBJ= $(addprefix $(MY_OBJ_DIR)/,$(addsuffix .o,$(basename $(ALL_SRC))))
# All object directories (excluding DUST directory due to compiling rules)
OBJDIRS:= $(MY_OBJ_DIR) $(addprefix $(MY_OBJ_DIR)/, $(ALL_DIRS)) $(MY_MOD_DIR)
# VPATH is used by make (directories to be searched for cmn-files etc)
VPATH:= .$(subst $(space),$(kolon),$(ALL_DIRS))
#-----------------------------------------------------------------
#--- END SOURCE FILES --------------------------------------------
#-----------------------------------------------------------------
#-----------------------------------------------------------------
# COMPILE RULES
#-----------------------------------------------------------------
# For printing title and end note
TITLE=TITLE_COMPILE
DONE=DONE_COMPILE
# Compile .f
$(MY_OBJ_DIR)/%.o: %.f | $(OBJDIRS)
$(FC) $(FIXEDFLAGS) $(STDOPTS) $(INCLUDES) $(OPTFLAGS) -o $@ -c $<
# Compile .f90
$(MY_OBJ_DIR)/%.o: %.f90 | $(OBJDIRS)
$(FC) $(FREEFLAGS) $(STDOPTS) $(INCLUDES) $(OPTFLAGS) -o $@ -c $<
# Compile .F90
$(MY_OBJ_DIR)/%.o: %.F90 | $(OBJDIRS)
$(FC) $(FREEFLAGS) $(STDOPTS) $(INCLUDES) $(OPTFLAGS) $(OSLO_TKN) -D$(HNATIVE) -D$(HWINDOW) -D$(VNATIVE) $(DEGRADE_TKN) -o $@ -c $<
$(MY_OBJ_DIR)/%.o: %.F | $(OBJDIRS)
$(FC) $(FIXEDFLAGS) $(STDOPTS) $(INCLUDES) $(OPTFLAGS) $(OSLO_TKN) -D$(HNATIVE) -D$(HWINDOW) -D$(VNATIVE) $(DEGRADE_TKN) -o $@ -c $<
#--- END of Oslo CTM3 compilation rules --------------------------
#-----------------------------------------------------------------
# COMPILE ALL AND LINK MAIN (do not edit)
#-----------------------------------------------------------------
# Final info to screen
$(DONE): $(MAIN)
@echo $(PROGNAME) compiled as $(MAIN)
@echo
# To make sure object dirs are generated (works so far...)
$(MY_OBJ_DIR)/$(OSLO_PATH)/$(OSLODUM_PATH): | $(MY_OBJ_DIR)/$(OSLO_PATH)
$(MY_OBJ_DIR)/$(DUST_PATH): | $(MY_OBJ_DIR)/$(OSLO_PATH)
# Set up object directories
$(OBJDIRS): | $(TITLE)
mkdir -p $@
# I need the tokens to work on cmn_size.F90, but have not found out how yet,
# so until that is taken care of, I chose to recompile all if Makefile have changed.
$(ALL_OBJ): $(MAKEFILE)
# Link main
$(MAIN): $(ALL_OBJ)
@echo
@echo ALL SHOULD BE OK :: LINKING MAIN
${FC} -o $@ ${STDOPTS} ${OPTFLAGS} $(INCLUDES) $(ALL_OBJ) ${LDFLAGS}
@echo
# Print title
$(TITLE):
@echo
@echo Compiling Oslo CTM3
@echo
#-----------------------------------------------------------------
# DEPENDENCIES (edit when adding new files)
#-----------------------------------------------------------------
# Each file may depend on other files. The files you need to list are
# common files and parameter files and also module files.
# Regular subroutine files, i.e. not modules, used by another file
# does not have to be listed.
#
# Files are listed alphabetically for
# CORE
# OSLO
# DUST
#-----------------------------------------------------------------
# === CORE dependencies ==========================================
# cmn_precision.o dependencies
# NONE
#
# cmn_ctm.o dependencies
$(filter %cmn_ctm.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ))
# cmn_met.o dependencies
$(filter %cmn_met.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ))
# cmn_diag.o dependencies
$(filter %cmn_diag.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ))
# cmn_chem.o dependencies
$(filter %cmn_chem.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ))
# cmn_fjx.o dependencies
$(filter %cmn_fjx.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ))
# cmn_sfc.o dependencies
$(filter %cmn_sfc.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ))
# cmn_parameters.o dependencies
$(filter %cmn_parameters.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ))
# averages.o dependencies
$(filter %averages.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %ncutils.o, $(ALL_OBJ)) \
$(filter %strat_h2o.o, $(ALL_OBJ))
# budgets.o dependencies
$(filter %budgets.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ))
# cloudjx.o dependencies
$(filter %cloudjx.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_fjx.o, $(ALL_OBJ))
# p-cloud2.o dependencies
$(filter %p-cloud2.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %cloudjx.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ))
# convection.o dependencies
$(filter %convection.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %cnv_oslo.o, $(ALL_OBJ))
# fastjx.o dependencies
$(filter %fastjx.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_fjx.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ))
# grid.o dependencies
$(filter %grid.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_sfc.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %regridding.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ)) \
$(filter %ncutils.o, $(ALL_OBJ))
# initialize.o dependencies
$(filter %initialize.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_sfc.o, $(ALL_OBJ)) \
$(filter %cloudjx.o, $(ALL_OBJ)) \
$(filter %grid.o, $(ALL_OBJ)) \
$(filter %stt_save_load.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %chem_oslo_rates.o, $(ALL_OBJ)) \
$(filter %input_oslo.o, $(ALL_OBJ)) \
$(filter %bcoc_oslo.o, $(ALL_OBJ))
# lightning.o dependencies
$(filter %lightning.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_sfc.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ))
# metdata_ecmwf.o dependencies
$(filter %metdata_ecmwf.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %cloudjx.o, $(ALL_OBJ)) \
$(filter %regridding.o, $(ALL_OBJ)) \
$(filter %spectral_routines.o, $(ALL_OBJ)) \
$(filter %ncutils.o, $(ALL_OBJ)) \
$(filter %dust_oslo.o, $(ALL_OBJ)) \
$(filter %physics_oslo.o, $(ALL_OBJ))
# omp.o dependencies
$(filter %omp.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ))
# p-dyn0.o dependencies
$(filter %p-dyn0.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
# p-dyn2.o dependencies
$(filter %p-dyn2.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %p-vect3.o, $(ALL_OBJ))
# p-linoz.o dependencies
$(filter %p-linoz.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ))
# p-series.o dependencies
$(filter %p-series.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ))
# p-phot_oc.o dependencies
$(filter %p-phot_oc.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_fjx.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %aerosols2fastjx.o, $(ALL_OBJ))
# p-setc_oc.o dependencies
#$(filter %p-setc_oc.o, $(ALL_OBJ)): \
# $(filter %cmn_precision.o, $(ALL_OBJ)) \
# $(filter %cmn_size.o, $(ALL_OBJ)) \
# $(filter %cmn_ctm.o, $(ALL_OBJ)) \
# $(filter %cmn_chem.o, $(ALL_OBJ)) \
# $(filter %cmn_fjx.o, $(ALL_OBJ)) \
# $(filter %cmn_met.o, $(ALL_OBJ)) \
# $(filter %cmn_parameters.o, $(ALL_OBJ)) \
# $(filter %utilities.o, $(ALL_OBJ))
# p-vect3.o dependencies
$(filter %p-vect3.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ))
# pbl_mixing.o dependencies
$(filter %pbl_mixing.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %cmn_sfc.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ))
# regridding.o dependencies
$(filter %regridding.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ))
# scavenging_drydep_uci.o dependencies
$(filter %scavenging_drydep_uci.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_sfc.o, $(ALL_OBJ)) \
$(filter %metdata_ecmwf.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ))
# scavenging_largescale_uci.o dependencies
$(filter %scavenging_largescale_uci.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_sfc.o, $(ALL_OBJ)) \
$(filter %metdata_ecmwf.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ))
# source_uci.o dependencies
$(filter %source_uci.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %emissions_aircraft.o, $(ALL_OBJ)) \
$(filter %emissions_megan.o, $(ALL_OBJ)) \
$(filter %emissions_ocean.o, $(ALL_OBJ)) \
$(filter %sulphur_oslo.o, $(ALL_OBJ)) \
$(filter %emissions_volcanoes.o, $(ALL_OBJ))
# spectral_routines.o dependencies
$(filter %spectral_routines.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ))
# steflux.o dependencies
$(filter %steflux.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ)) \
$(filter %ncutils.o, $(ALL_OBJ))
# utilities.o dependencies
$(filter %utilities.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ))
# stt_save_load.o dependencies
$(filter %stt_save_load.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %grid.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %ncutils.o, $(ALL_OBJ)) \
# pmain.o dependencies
$(filter %pmain.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_sfc.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %averages.o, $(ALL_OBJ)) \
$(filter %budgets.o, $(ALL_OBJ)) \
$(filter %cloudjx.o, $(ALL_OBJ)) \
$(filter %convection.o, $(ALL_OBJ)) \
$(filter %fastjx.o, $(ALL_OBJ)) \
$(filter %grid.o, $(ALL_OBJ)) \
$(filter %initialize.o, $(ALL_OBJ)) \
$(filter %lightning.o, $(ALL_OBJ)) \
$(filter %metdata_ecmwf.o, $(ALL_OBJ)) \
$(filter %omp.o, $(ALL_OBJ)) \
$(filter %p-linoz.o, $(ALL_OBJ)) \
$(filter %pbl_mixing.o, $(ALL_OBJ)) \
$(filter %scavenging_drydep_uci.o, $(ALL_OBJ)) \
$(filter %scavenging_largescale_uci.o, $(ALL_OBJ)) \
$(filter %source_uci.o, $(ALL_OBJ)) \
$(filter %steflux.o, $(ALL_OBJ)) \
$(filter %stt_save_load.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %emissions_aircraft.o, $(ALL_OBJ)) \
$(filter %emissions_ocean.o, $(ALL_OBJ)) \
$(filter %bcoc_oslo.o, $(ALL_OBJ)) \
$(filter %diagnostics_general.o, $(ALL_OBJ)) \
$(filter %diagnostics_scavenging.o, $(ALL_OBJ)) \
$(filter %drydeposition_oslo.o, $(ALL_OBJ)) \
$(filter %dust_oslo.o, $(ALL_OBJ)) \
$(filter %emissions_oslo.o, $(ALL_OBJ)) \
$(filter %fallingaerosols.o, $(ALL_OBJ)) \
$(filter %gmdump3hrs.o, $(ALL_OBJ)) \
$(filter %input_oslo.o, $(ALL_OBJ)) \
$(filter %main_oslo.o, $(ALL_OBJ)) \
$(filter %physics_oslo.o, $(ALL_OBJ)) \
$(filter %ch4routines.o, $(ALL_OBJ)) \
$(filter %seasalt.o, $(ALL_OBJ)) \
$(filter %soa_oslo.o, $(ALL_OBJ)) \
$(filter %stratchem_oslo.o, $(ALL_OBJ)) \
$(filter %strat_h2o.o, $(ALL_OBJ)) \
$(filter %utilities_oslo.o, $(ALL_OBJ))
# === OSLO dependencies ==========================================
# cmn_oslo.o dependencies
$(filter %cmn_oslo.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_fjx.o, $(ALL_OBJ))
# eqsam_v03d.o dependencies
$(filter %eqsam_v03d.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ))
# aerosols2fastjx.o dependencies
$(filter %aerosols2fastjx.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %regridding.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %bcoc_oslo.o, $(ALL_OBJ)) \
$(filter %ncutils.o, $(ALL_OBJ))
# atom.o dependencies
$(filter %atom.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %dateconv.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %physics_oslo.o, $(ALL_OBJ)) \
$(filter %strat_h2o.o, $(ALL_OBJ))
# bcoc_oslo.o dependencies
$(filter %bcoc_oslo.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_diag.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_sfc.o, $(ALL_OBJ)) \
$(filter %grid.o, $(ALL_OBJ)) \
$(filter %regridding.o, $(ALL_OBJ)) \
$(filter %utilities.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %ncutils.o, $(ALL_OBJ)) \
$(filter %qssa_integrator.o, $(ALL_OBJ)) \
$(filter %utilities_oslo.o, $(ALL_OBJ))
# caribic2.o dependencies
$(filter %caribic2.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %dateconv.o, $(ALL_OBJ)) \
$(filter %cmn_oslo.o, $(ALL_OBJ)) \
$(filter %physics_oslo.o, $(ALL_OBJ)) \
$(filter %strat_h2o.o, $(ALL_OBJ))
# ch4routines.o dependencies
$(filter %ch4routines.o, $(ALL_OBJ)): \
$(filter %cmn_precision.o, $(ALL_OBJ)) \
$(filter %cmn_size.o, $(ALL_OBJ)) \
$(filter %cmn_ctm.o, $(ALL_OBJ)) \
$(filter %cmn_chem.o, $(ALL_OBJ)) \
$(filter %cmn_met.o, $(ALL_OBJ)) \
$(filter %cmn_parameters.o, $(ALL_OBJ)) \
$(filter %grid.o, $(ALL_OBJ)) \
$(filter %regridding.o, $(ALL_OBJ)) \