-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkid_a_setup.diff
874 lines (750 loc) · 35.1 KB
/
kid_a_setup.diff
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
diff -ruN '--exclude=mphys_libcloud_lgr.f90' '--exclude=kida_SC_2D_libcloud_lgr.nml' '--exclude=*~' '--exclude=*.mod' '--exclude=*.o' '--exclude=bin' '--exclude=4A_code' '--exclude=UM_source' '--exclude=.includes' '--exclude=case.used' '--exclude=output' '--exclude=gmon.out' kid_a_setup.orig/namelists/SC_2D_input.nml kid_a_setup/namelists/SC_2D_input.nml
--- kid_a_setup.orig/namelists/SC_2D_input.nml 2015-06-02 09:23:07.000000000 +0200
+++ kid_a_setup/namelists/SC_2D_input.nml 2015-08-18 12:19:50.307569068 +0200
@@ -3,6 +3,6 @@
! comment out this call (in namelists.nml) and use this file to input
! the value.
&namelistToUse
-fileIn='namelists/SC_2D.nml'
+fileIn='namelists/kida_SC_2D_libcloud_lgr.nml'
fileOut='output/SC_2D_out.nc'
/
diff -ruN '--exclude=mphys_libcloud_lgr.f90' '--exclude=kida_SC_2D_libcloud_lgr.nml' '--exclude=*~' '--exclude=*.mod' '--exclude=*.o' '--exclude=bin' '--exclude=4A_code' '--exclude=UM_source' '--exclude=.includes' '--exclude=case.used' '--exclude=output' '--exclude=gmon.out' kid_a_setup.orig/namelists/WMO_CASE1_input.nml kid_a_setup/namelists/WMO_CASE1_input.nml
--- kid_a_setup.orig/namelists/WMO_CASE1_input.nml 2015-06-02 09:23:07.000000000 +0200
+++ kid_a_setup/namelists/WMO_CASE1_input.nml 2015-08-18 13:06:38.503423920 +0200
@@ -3,6 +3,6 @@
! comment out this call (in namelists.nml) and use this file to input
! the value.
&namelistToUse
-fileIn='namelists/WMO_CASE1.nml'
+fileIn='namelists/kida_SC_2D_libcloud_lgr.nml'
fileOut='output/WMO_CASE1_out.nc'
/
diff -ruN '--exclude=mphys_libcloud_lgr.f90' '--exclude=kida_SC_2D_libcloud_lgr.nml' '--exclude=*~' '--exclude=*.mod' '--exclude=*.o' '--exclude=bin' '--exclude=4A_code' '--exclude=UM_source' '--exclude=.includes' '--exclude=case.used' '--exclude=output' '--exclude=gmon.out' kid_a_setup.orig/src/compiler_options.inc kid_a_setup/src/compiler_options.inc
--- kid_a_setup.orig/src/compiler_options.inc 2015-06-02 09:23:07.000000000 +0200
+++ kid_a_setup/src/compiler_options.inc 2015-08-18 12:19:50.307569068 +0200
@@ -53,10 +53,11 @@
LD=$(F90) # Linker
INCDF=-I$(NCPATH)/include
-LNCDF=-L$(NCPATH)/lib -lnetcdf
+LNCDF=-L$(NCPATH)/lib -lnetcdff
LDFLAGS=$(INCDF) $(LNCDF)
EXECUTABLE=$(MODEL)_$(CASE).exe
+SHARED_LIB=$(MODEL)_$(CASE).so
F2PY=/usr/local/cdat/bin/f2py
F2PY_OPTS=--fcompiler-exec=$(COMPILER) $(LDFLAGS)
diff -ruN '--exclude=mphys_libcloud_lgr.f90' '--exclude=kida_SC_2D_libcloud_lgr.nml' '--exclude=*~' '--exclude=*.mod' '--exclude=*.o' '--exclude=bin' '--exclude=4A_code' '--exclude=UM_source' '--exclude=.includes' '--exclude=case.used' '--exclude=output' '--exclude=gmon.out' kid_a_setup.orig/src/diagnostics.f90 kid_a_setup/src/diagnostics.f90
--- kid_a_setup.orig/src/diagnostics.f90 2015-06-02 09:23:07.000000000 +0200
+++ kid_a_setup/src/diagnostics.f90 2015-08-18 15:19:25.619012121 +0200
@@ -21,6 +21,8 @@
Use namelists, only: KiD_outdir, KiD_outfile, fileNameOut
+ use iso_c_binding, only: c_int, c_float, c_char
+
Implicit none
type, public :: dgID
@@ -845,6 +847,9 @@
write (unit=6,fmt='(T3, i3, a)') int(100*i_dgtime&
&/float(maxn_dgtimes)), '% completed...'
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+call write_diagnostics !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
end subroutine save_diagnostics_2d
subroutine allocate_dgs_1DTS(dgStore)
@@ -858,13 +863,13 @@
if (nx == 1) then
maxn_dgtimes=max(maxn_dgtimes, int(n_dgtimes*dt/dg_dt)+1)
- allocate(dgStore%data(nz, maxn_dgtimes))
+ allocate(dgStore%data(nz, 2)) !!!!
dgStore%data=unset_real
else
maxn_dgtimes=max(maxn_dgtimes, int(n_dgtimes*dt/dg_dt)+1)
- allocate(dgStore%data(1:nx, maxn_dgtimes))
+ allocate(dgStore%data(1:nx, 2)) !!!!
dgStore%data=unset_real
endif
@@ -880,7 +885,7 @@
n_dgtimes = n_times - n_offset
maxn_dgtimes=max(maxn_dgtimes, int(n_dgtimes*dt/dg_dt)+1)
- allocate(dgStore%data(nz, 1:nx, maxn_dgtimes))
+ allocate(dgStore%data(nz, 1:nx, 2)) !!!!
dgStore%data=unset_real
end subroutine allocate_dgs_2DTS
@@ -894,7 +899,7 @@
n_dgtimes = n_times - n_offset
maxn_dgtimes=max(maxn_dgtimes, int(n_dgtimes*dt/dg_dt)+1)
- allocate(dgStore%data(nz, max_nbins, maxn_dgtimes))
+ allocate(dgStore%data(nz, max_nbins, 2)) !!!!
dgStore%data=unset_real
end subroutine allocate_dgs_bindgs
@@ -908,7 +913,7 @@
n_dgtimes = n_times - n_offset
maxn_dgtimes=max(maxn_dgtimes, int(n_dgtimes*dt/dg_dt)+1)
- allocate(dgStore%data(nz, nx, max_nbins, maxn_dgtimes))
+ allocate(dgStore%data(nz, nx, max_nbins, 2)) !!!!
dgStore%data=unset_real
end subroutine allocate_dgs_bindgs_2d
@@ -922,7 +927,7 @@
n_dgtimes = n_times - n_offset
maxn_dgtimes=max(maxn_dgtimes, int(n_dgtimes*dt/dg_dt)+1)
- allocate(dgStore%data(maxn_dgtimes))
+ allocate(dgStore%data(2)) !!!!
dgStore%data=unset_real
end subroutine allocate_dgs_ScalarTS
@@ -972,7 +977,7 @@
real(sp), intent(in) :: field(:)
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables for column diagnostics
@@ -1019,6 +1024,9 @@
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(:,itime)=field(:)
end subroutine save_dg_1d_sp
@@ -1029,7 +1037,7 @@
integer, intent(in) :: ks, ke ! start and end of range
real(sp), intent(in) :: field(:)
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1074,6 +1082,9 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(ks:ke,itime)=field(ks:ke)
end subroutine save_dg_1d_range_sp
@@ -1084,7 +1095,7 @@
integer, intent(in) :: k ! index of value to input
real(sp), intent(in) :: value
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1128,16 +1139,34 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(k,itime)=value
end subroutine save_dg_1d_point_sp
+
+ subroutine save_dg_2d_sp_c( &
+ field, nx, nz, &
+ name, namelen, &
+ units, unitslen, &
+ itime &
+ )
+ integer(c_int), intent(in), value :: nx, nz, itime, namelen, unitslen
+ real(c_float), intent(in) :: field(nz, nx)
+ character(namelen) :: name
+ character(unitslen) :: units
+
+ call save_dg_2d_sp(field, name, itime, units, "z,x")
+ end subroutine
+
subroutine save_dg_2d_sp(field, name, itime, units, &
dim, longname)
real(sp), intent(in) :: field(:,:)
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1182,6 +1211,9 @@
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(:,:,itime)=field(:,:)
end subroutine save_dg_2d_sp
@@ -1192,7 +1224,7 @@
integer, intent(in) :: k ,l! indices of value to input
real(sp), intent(in) :: value
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1236,6 +1268,9 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(k,l,itime)=value
end subroutine save_dg_2d_point_sp
@@ -1244,7 +1279,7 @@
real(sp), intent(in) :: value
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1285,6 +1320,9 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(itime)=value
end subroutine save_dg_scalar_sp
@@ -1293,7 +1331,7 @@
real(dp), intent(in) :: field(:)
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1338,6 +1376,9 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(:,itime)=field(:)
end subroutine save_dg_1d_dp
@@ -1348,7 +1389,7 @@
integer, intent(in) :: ks, ke ! start and end of range
real(dp), intent(in) :: field(:)
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1393,6 +1434,9 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(ks:ke,itime)=field(ks:ke)
end subroutine save_dg_1d_range_dp
@@ -1403,7 +1447,7 @@
integer, intent(in) :: k ! index of value to input
real(dp), intent(in) :: value
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1447,6 +1491,9 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(k,itime)=value
end subroutine save_dg_1d_point_dp
@@ -1456,7 +1503,7 @@
real(dp), intent(in) :: field(:,:)
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1500,6 +1547,9 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(:,:,itime)=field(:,:)
end subroutine save_dg_2d_dp
@@ -1510,7 +1560,7 @@
integer, intent(in) :: k ,l! indices of value to input
real(dp), intent(in) :: value
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1554,6 +1604,9 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(k,l,itime)=value
end subroutine save_dg_2d_point_dp
@@ -1563,7 +1616,7 @@
real(dp), intent(in) :: value
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1604,6 +1657,9 @@
dg(ivar)%dim=trim(cdim)
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(itime)=value
end subroutine save_dg_scalar_dp
@@ -1614,7 +1670,7 @@
real(sp), intent(in) :: field(:,:)
character(*), intent(in) :: name
!character(*), intent(in) :: bin
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1659,6 +1715,9 @@
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(:,:,itime)=field(:,:)
end subroutine save_dg_bin_sp
@@ -1669,7 +1728,7 @@
real(dp), intent(in) :: field(:,:)
character(*), intent(in) :: name
!character(*), intent(in) :: bin
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1714,16 +1773,33 @@
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(:,:,itime)=field(:,:)
end subroutine save_dg_bin_dp
+ subroutine save_dg_2d_bin_sp_c( &
+ field, nb, nx, nz, &
+ name, namelen, &
+ units, unitslen, &
+ itime &
+ )
+ integer(c_int), intent(in), value :: nb, nx, nz, itime, namelen, unitslen
+ real(c_float), intent(in) :: field(nz, nx, nb)
+ character(namelen) :: name
+ character(unitslen) :: units
+
+ call save_dg_2d_bin_sp(field, name, itime, units, "z,x,b")
+ end subroutine
+
subroutine save_dg_2d_bin_sp(field, name, itime, units, &
dim, longname)
real(sp), intent(in) :: field(:,:,:)
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1768,6 +1844,9 @@
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(:,:,:,itime)=field(:,:,:)
end subroutine save_dg_2d_bin_sp
@@ -1777,7 +1856,7 @@
real(dp), intent(in) :: field(:,:,:)
character(*), intent(in) :: name
- integer, intent(in) :: itime
+ integer, value :: itime !!!!
character(*), intent(in), optional :: units, dim, longname
!local variables
@@ -1822,10 +1901,26 @@
dg(ivar)%longname=trim(clongname)
end if
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (itime .gt. 1) itime = 2 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dg(ivar)%data(:,:,:,itime)=field(:,:,:)
end subroutine save_dg_2d_bin_dp
+ subroutine save_binData_sp_c(&
+ field, nb, &
+ name, namelen, &
+ units, unitslen &
+ )
+ integer(c_int), intent(in), value :: nb, namelen, unitslen
+ real(c_float), intent(in) :: field(nb)
+ character(namelen) :: name
+ character(unitslen) :: units
+
+ call save_binData_sp(field, name, units)
+ end subroutine
+
subroutine save_binData_sp(field, name, units, &
longname)
! Save the bin data (e.g. sizes or masses)
@@ -1912,7 +2007,7 @@
end subroutine save_binData_dp
- subroutine write_diagnostics
+ recursive subroutine write_diagnostics !!!!
Use netcdf
Use switches, only : icase
@@ -1924,15 +2019,34 @@
integer :: ivar, itmp=1, offset=3, n_dgs, k, iq, tim, ibin
character(4) :: char4
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+integer, save :: ncid !!!!
+integer :: vid, itime !!!!
+logical, save :: init = .false. !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
! netcdf variables
- integer :: status, ncid, zid, xid, timeid, binsid
+ integer :: status, zid, xid, timeid, binsid !!!!
integer :: tzdim(2), txdim(2), tzldim(3), tzxdim(3), tzxbindim(4) &
,dim, dim2d(2), dim3d(3), dim4d(4)
integer, allocatable :: varid(:)
- real, allocatable :: field3d(:,:,:)
- real, allocatable :: field4d(:,:,:,:)
-
- write(6,*) 'Integration complete.'
+ real, allocatable :: field3d(:,:) !!!!
+ real, allocatable :: field4d(:,:,:) !!!!
+
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (i_dgtime .eq. 1) return !!!!
+ !!!!
+if ((i_dgtime .eq. 2) .and. (init .eqv. .false.)) then !!!!
+ init = .true. !!!!
+ call write_diagnostics !!!!
+endif !!!!
+ !!!!
+itime = 2 !!!!
+ !!!!
+if (init) then !!!!
+ itime = 1 !!!!
+ i_dgtime = 1 !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if (fileNameOut=='')then
write(char4,'(I4.4)')icase
@@ -1990,7 +2104,7 @@
status=nf90_put_att(ncid, nf90_global, 'references', references)
status=nf90_put_att(ncid, nf90_global, 'comments', comments)
- status=nf90_def_dim(ncid, 'time', int(n_dgtimes, kind=incdfp), timeid)
+ status=nf90_def_dim(ncid, 'time', NF90_UNLIMITED, timeid) !!!!
call check_ncstatus(status)
status=nf90_def_dim(ncid, 'z', int(nz, kind=incdfp), zid)
call check_ncstatus(status)
@@ -1999,11 +2113,11 @@
status=nf90_def_dim(ncid, 'x', int(nx, kind=incdfp), xid)
call check_ncstatus(status)
- tzdim=(/ timeid, zid /)
- txdim=(/ timeid, xid /)
- tzldim=(/ timeid, binsid, zid /)
- tzxdim=(/ timeid, xid, zid /)
- tzxbindim=(/ timeid, binsid, xid, zid /)
+ tzdim=(/ zid, timeid /) !!!!
+ txdim=(/ xid, timeid /) !!!!
+ tzldim=(/ binsid, zid, timeid /) !!!!
+ tzxdim=(/ xid, zid, timeid /) !!!!
+ tzxbindim=(/ binsid, xid, zid, timeid /) !!!!
! Do the dim variables
n_dgs=2
@@ -2063,7 +2177,13 @@
deallocate(varid)
! Do scalars (including time)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+endif !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
n_dgs=ID_Scalars%nids
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (init) then !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
allocate(varid(n_dgs))
status=nf90_redef(ncid)
dim=timeid
@@ -2084,16 +2204,36 @@
status=nf90_enddef(ncid)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+endif !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
do ivar=1,n_dgs
- status=nf90_put_var(ncid, varid(ivar), &
- scalars(ivar)%data(1:n_dgtimes))
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ name=scalars(ivar)%name !!!!
+ call sanitize(name) !!!!
+ status=nf90_inq_varid(ncid, name, vid) !!!!
+ call check_ncstatus(status) !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ status=nf90_put_var(ncid, vid, & !!!!
+ scalars(ivar)%data(itime), start=(/i_dgtime/))!!!!
call check_ncstatus(status)
end do
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (init) then !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
deallocate(varid)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+endif !!!!
+ !!!!
+write(6,*) 'Writing data @ i_dgtime=', i_dgtime !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if (nx == 1) then
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!!! nx == 1 case not finished! !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Do the instantaneous diags (1D)
n_dgs=ID_instant_column%nids
@@ -2144,13 +2284,14 @@
status=nf90_enddef(ncid)
- allocate(field3d(n_dgtimes, max_nbins, nz))
+!!!! TODO
+!!!! allocate(field3d(n_dgtimes, max_nbins, nz))
do ivar=1,n_dgs
do tim=1,n_dgtimes
do iq=1, max_nbins
do k = 1,nz
- field3d(tim,iq,k)= instant_bindgs(ivar)%data(k,iq,tim)
+ field3d(iq,k)= instant_bindgs(ivar)%data(k,iq,itime) !!!!
enddo
enddo
enddo
@@ -2168,6 +2309,9 @@
! Do the instantaneous diags (2D)
n_dgs=ID_instant_2D%nids
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (init) then !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
allocate(varid(n_dgs))
status=nf90_redef(ncid)
dim3d=tzxdim
@@ -2186,18 +2330,26 @@
status=nf90_enddef(ncid)
- allocate(field3d(n_dgtimes, nx, nz))
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+endif !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ allocate(field3d(nx, nz)) !!!!
do ivar=1,n_dgs
- do tim=1,n_dgtimes
+!!!! do tim=1,n_dgtimes !!!!
do j = 1, nx
do k = 1,nz
- field3d(tim,j,k)= field_mask(k,j)*instant_2D(ivar)%data(k,j,tim) &
+ field3d(j,k)= field_mask(k,j)*instant_2D(ivar)%data(k,j,itime) &
+(1.-field_mask(k,j))*unset_real
enddo
- enddo
+!!!! enddo !!!!
enddo
- status=nf90_put_var(ncid, varid(ivar), field3d)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ status=nf90_inq_varid(ncid, & !!!!
+ instant_2D(ivar)%name, vid) !!!!
+ call check_ncstatus(status) !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ status=nf90_put_var(ncid, vid, field3d, start=(/1,1,i_dgtime/)) !!!!
call check_ncstatus(status)
@@ -2205,10 +2357,19 @@
deallocate(field3d)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (init) then !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
deallocate(varid)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+endif !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Do the instantaneous bin micro diags (2D)
n_dgs=ID_instant_2Dbindgs%nids
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (init) then !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
allocate(varid(n_dgs))
status=nf90_redef(ncid)
dim4d=tzxbindim
@@ -2227,20 +2388,30 @@
status=nf90_enddef(ncid)
- allocate(field4d(n_dgtimes, max_nbins, nx, nz))
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+endif !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ allocate(field4d(max_nbins, nx, nz))
do ivar=1,n_dgs
- do tim=1,n_dgtimes
+!!!! do tim=1,n_dgtimes !!!!
do ibin= 1,max_nbins
do j = 1, nx
do k = 1,nz
- field4d(tim,ibin,j,k)= field_mask(k,j)*instant_2Dbindgs(ivar)%data(k,j,ibin,tim) &
+ field4d(ibin,j,k)= field_mask(k,j)*instant_2Dbindgs(ivar)%data(k,j,ibin,itime) & !!!!
+(1.-field_mask(k,j))*unset_real
enddo
enddo
- enddo
+!!!! enddo !!!!
enddo
- status=nf90_put_var(ncid, varid(ivar), field4d)
+
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ status=nf90_inq_varid(ncid, & !!!!
+ instant_2Dbindgs(ivar)%name, vid) !!!!
+ call check_ncstatus(status) !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+ status=nf90_put_var(ncid, vid, field4d(:,:,:), start=(/1,1,1,i_dgtime/)) !!!!
call check_ncstatus(status)
@@ -2248,10 +2419,19 @@
deallocate(field4d)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (init) then !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
deallocate(varid)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+endif !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Do the instantaneous diags (nx vs time)
n_dgs=ID_instant_column%nids
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (init) then !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
allocate(varid(n_dgs))
status=nf90_redef(ncid)
dim2d=txdim
@@ -2270,19 +2450,39 @@
status=nf90_enddef(ncid)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+endif !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
do ivar=1,n_dgs
- status=nf90_put_var(ncid, varid(ivar), &
- transpose(instant_column(ivar)%data(1:nx,1:n_dgtimes)))
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ status=nf90_inq_varid(ncid, & !!!!
+ instant_column(ivar)%name, vid) !!!!
+ call check_ncstatus(status) !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ status=nf90_put_var(ncid, vid, instant_column(ivar)%data(1:nx,itime), start=(/1, i_dgtime/)) !!!!
call check_ncstatus(status)
end do
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (init) then !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
deallocate(varid)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+endif !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
endif
- status=nf90_close(ncid)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ status = nf90_sync(ncid) !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!!! status=nf90_close(ncid) !!!!
call check_ncstatus(status)
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+if (init) then !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! We now write out the full namelist data to file
nmlfile=outfile(1:len_trim(outfile)-3)//'.nml'
@@ -2296,8 +2496,11 @@
write(99, switch)
write(99, addcontrol)
close(99)
-
-
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+i_dgtime = 2 !!!!
+init = .false. !!!!
+endif !!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
end subroutine write_diagnostics
subroutine check_ncstatus(status, name)
diff -ruN '--exclude=mphys_libcloud_lgr.f90' '--exclude=kida_SC_2D_libcloud_lgr.nml' '--exclude=*~' '--exclude=*.mod' '--exclude=*.o' '--exclude=bin' '--exclude=4A_code' '--exclude=UM_source' '--exclude=.includes' '--exclude=case.used' '--exclude=output' '--exclude=gmon.out' kid_a_setup.orig/src/main.f90 kid_a_setup/src/main.f90
--- kid_a_setup.orig/src/main.f90 2015-06-02 09:23:07.000000000 +0200
+++ kid_a_setup/src/main.f90 2015-08-18 12:19:50.311569067 +0200
@@ -97,7 +97,8 @@
end do
- if (l_write_dgs) call write_diagnostics
+!!!! if (l_write_dgs) call write_diagnostics !!!!
+!!!! included in save_diagnostics_2d !!!!
end subroutine main_loop
diff -ruN '--exclude=mphys_libcloud_lgr.f90' '--exclude=kida_SC_2D_libcloud_lgr.nml' '--exclude=*~' '--exclude=*.mod' '--exclude=*.o' '--exclude=bin' '--exclude=4A_code' '--exclude=UM_source' '--exclude=.includes' '--exclude=case.used' '--exclude=output' '--exclude=gmon.out' kid_a_setup.orig/src/makefile.inc kid_a_setup/src/makefile.inc
--- kid_a_setup.orig/src/makefile.inc 2015-06-02 09:23:07.000000000 +0200
+++ kid_a_setup/src/makefile.inc 2015-08-18 12:19:50.311569067 +0200
@@ -29,7 +29,7 @@
OBJS=$(OBJSF) $(OBJSF90)
-all: defs $(EXECUTABLE)
+all: defs $(SHARED_LIB)
defs:
touch case.used
@@ -49,10 +49,13 @@
$(F90D) -c $< -o $@ $(INCDF)
$(OBJSF90): $(OBJDIR)/%.o: %.f90
- $(F90D) -c $< -o $@ $(INCDF)
+ $(F90D) -c -fPIC $< -o $@ $(INCDF)
$(OBJSF): $(OBJDIR)/%.o: %.f
- $(F90D) -c $< -o $@ $(INCDF)
+ $(F90D) -c -fPIC $< -o $@ $(INCDF)
$(EXECUTABLE): $(OBJS) $(OBJSF90_UM) $(OBJSF90_4A)
$(LD) -o $(EXECDIR)/$(EXECUTABLE) $(OBJDIR)/*.o $(OBJSF90_4A) $(OBJSF90_UM) $(LDFLAGS)
+
+$(SHARED_LIB): $(OBJS) $(OBJPTRUTIL) $(OBJSF90_UM) $(OBJSF90_4A)
+ $(LD) -shared -o $(EXECDIR)/$(SHARED_LIB) $(OBJDIR)/*.o $(OBJSF90_4A) $(OBJSF90_UM) $(LDFLAGS)
diff -ruN '--exclude=mphys_libcloud_lgr.f90' '--exclude=kida_SC_2D_libcloud_lgr.nml' '--exclude=*~' '--exclude=*.mod' '--exclude=*.o' '--exclude=bin' '--exclude=4A_code' '--exclude=UM_source' '--exclude=.includes' '--exclude=case.used' '--exclude=output' '--exclude=gmon.out' kid_a_setup.orig/src/mphys_interface.f90 kid_a_setup/src/mphys_interface.f90
--- kid_a_setup.orig/src/mphys_interface.f90 2015-07-06 19:54:49.000000000 +0200
+++ kid_a_setup/src/mphys_interface.f90 2015-08-18 12:19:50.311569067 +0200
@@ -19,6 +19,7 @@
#if SHIPWAY_MICRO == 1
Use mphys_4A, only: mphys_4A_interface
#endif
+ Use mphys_libcloud_lgr, only: mphys_libcloud_lgr_interface
Use switches
Use column_variables, only: theta, dtheta_adv, dtheta_div
Use pressure_update, only : exner_timestep_upd
@@ -54,6 +55,9 @@
case(imphys_4A) ! Shipway 4A scheme
call mphys_4A_interface
#endif
+ case(imphys_libcloud_lgr) ! libcloudph++: lagrangian scheme (super-droplet)
+ call mphys_libcloud_lgr_interface
+
end select
end subroutine mphys_column
diff -ruN '--exclude=mphys_libcloud_lgr.f90' '--exclude=kida_SC_2D_libcloud_lgr.nml' '--exclude=*~' '--exclude=*.mod' '--exclude=*.o' '--exclude=bin' '--exclude=4A_code' '--exclude=UM_source' '--exclude=.includes' '--exclude=case.used' '--exclude=output' '--exclude=gmon.out' kid_a_setup.orig/src/namelists.f90 kid_a_setup/src/namelists.f90
--- kid_a_setup.orig/src/namelists.f90 2015-07-06 19:56:43.000000000 +0200
+++ kid_a_setup/src/namelists.f90 2015-08-18 12:30:04.475537323 +0200
@@ -177,6 +177,9 @@
case('4A')
imphys=imphys_4A
mphys_id='4A'
+ case('libcloud_lgr')
+ imphys=imphys_libcloud_lgr
+ mphys_id='libcloud_lgr'
case default
print*, 'Mphys scheme not recognized: ', mphys_scheme
print*, 'Did you mean:'
diff -ruN '--exclude=mphys_libcloud_lgr.f90' '--exclude=kida_SC_2D_libcloud_lgr.nml' '--exclude=*~' '--exclude=*.mod' '--exclude=*.o' '--exclude=bin' '--exclude=4A_code' '--exclude=UM_source' '--exclude=.includes' '--exclude=case.used' '--exclude=output' '--exclude=gmon.out' kid_a_setup.orig/src/switches.f90 kid_a_setup/src/switches.f90
--- kid_a_setup.orig/src/switches.f90 2015-06-02 09:23:07.000000000 +0200
+++ kid_a_setup/src/switches.f90 2015-08-18 12:19:50.315569067 +0200
@@ -96,7 +96,8 @@
,imphys_um7_3 =9 & ! UM test: Jonathan Wilkinson
,imphys_wsm6 =10 & ! WSM6 scheme
,imphys_wdm6 =11 & ! WDM6 scheme
- ,imphys_4A =12 ! Shipway scheme
+ ,imphys_4A =12 & ! Shipway scheme
+ ,imphys_libcloud_lgr =44 ! libcloudph++: lagrangian scheme (super-droplet)
! Integer switches to choose input data type and/or test case
integer, parameter :: &