Source

active-particles / src / enzo / Make.config.targets

  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
#=======================================================================
#
# FILE:        Make.config.targets
#
# SUMMARY:     Make targets for managing configuration settings
#
# AUTHOR:      James Bordner (jobordner@ucsd.edu)
#
# DATE:        2007-02-21
#
# DESCRIPTION  See 'gmake help-config' for definitive description of targets
#
#-----------------------------------------------------------------------

#-----------------------------------------------------------------------
help-config:
	@echo "========================================================================"
	@echo "   ENZO CONFIGURATION HELP"
	@echo "========================================================================"
	@echo
	@echo "NUMERICAL PARAMETERS"
	@echo
	@echo "   Set maximum subgrids"
	@echo
	@echo "      gmake max-subgrids-###"
	@echo
	@echo "   Set maximum baryon fields"
	@echo
	@echo "      gmake max-baryons-###"
	@echo
	@echo "   Set maximum tasks per node"
	@echo
	@echo "      gmake max-tasks-per-node-###"
	@echo
	@echo "   Set initial memory pool size (in number of photons)"
	@echo
	@echo "      gmake memory-pool-###"
	@echo
	@echo
	@echo "CONFIGURATION SETTINGS"
	@echo
	@echo "   Set integer size"
	@echo
	@echo "      gmake integers-32"
	@echo "      gmake integers-64"
	@echo
	@echo "   Set integer size for particle IDs"
	@echo
	@echo "      gmake particle-id-32"
	@echo "      gmake particle-id-64"
	@echo
	@echo "   Set floating-point precision"
	@echo
	@echo "      gmake precision-32"
	@echo "      gmake precision-64"
	@echo
	@echo "   Set particle position precision"
	@echo
	@echo "      gmake particles-32"
	@echo "      gmake particles-64"
	@echo "      gmake particles-128"
	@echo
	@echo "   Set inits precision"
	@echo
	@echo "      gmake inits-32"
	@echo "      gmake inits-64"
	@echo
	@echo "   Set IO precision"
	@echo
	@echo "      gmake io-32"
	@echo "      gmake io-64"
	@echo
	@echo "   Set whether to use MPI"
	@echo
	@echo "      gmake use-mpi-yes"
	@echo "      gmake use-mpi-no"
	@echo
	@echo "   Set address/pointer size"
	@echo
	@echo "      gmake object-mode-32"
	@echo "      gmake object-mode-64"
	@echo
	@echo "   Set whether to use unigrid taskmap performance mod"
	@echo
	@echo "      gmake taskmap-yes"
	@echo "      gmake taskmap-no"
	@echo
	@echo "   Set whether to use 'packed memory' mods (requires packed AMR)"
	@echo
	@echo "      gmake packed-mem-yes"
	@echo "      gmake packed-mem-no"
	@echo
	@echo "   Set whether to call lcaperf performance tool"
	@echo
	@echo "      gmake lcaperf-yes"
	@echo "      gmake lcaperf-no"
	@echo
	@echo "   Set whether to use the PAPI library with lcaperf"
	@echo
	@echo "      gmake papi-yes"
	@echo "      gmake papi-no"
	@echo
	@echo "   Set whether to use embedded Python interpreter"
	@echo
	@echo "      gmake python-yes"
	@echo "      gmake python-no"
	@echo
	@echo "   Set whether to use the new problem initializers"
	@echo
	@echo "      gmake new-problem-types-yes"
	@echo "      gmake new-problem-types-no"
	@echo
	@echo "   Set whether to use embedded CVODE solver"
	@echo
	@echo "      gmake cvode-yes"
	@echo "      gmake cvode-no"
	@echo
	@echo "   Set whether to perform unigrid communication transpose"
	@echo
	@echo "      gmake unigrid-transpose-yes"
	@echo "      gmake unigrid-transpose-no"
	@echo
	@echo "   Set whether to use out-of-core handling of the boundary"
	@echo
	@echo "      gmake ooc-boundary-yes"
	@echo "      gmake ooc-boundary-no"
	@echo
	@echo "   Set whether to set the acceleration boundary"
	@echo
	@echo "      gmake acceleration-boundary-yes"
	@echo "      gmake acceleration-boundary-no"
	@echo
	@echo "   Set optimization/debug/warning levels"
	@echo
	@echo "      gmake opt-warn"
	@echo "      gmake opt-debug"
	@echo "      gmake opt-cudadebug  (cuda device software emulation)"
	@echo "      gmake opt-high"
	@echo "      gmake opt-aggressive"
	@echo
	@echo "   Include hooks for test suites"
	@echo
	@echo "      gmake testing-yes"
	@echo "      gmake testing-no"
	@echo
	@echo "   Include isolated boundary conditions"
	@echo 
	@echo "      gmake isolated-bcs-yes"
	@echo "      gmake isolated-bcs-no"
	@echo
	@echo "   Include tracer particle velocity information"
	@echo
	@echo "      gmake tpvel-yes"
	@echo "      gmake tpvel-no"
	@echo 
	@echo "   Include radiative transfer (adaptive ray tracing)"
	@echo
	@echo "      gmake photon-yes"
	@echo "      gmake photon-no"
	@echo 
	@echo "   Include fast sibling search"
	@echo
	@echo "      gmake fastsib-yes"
	@echo "      gmake fastsib-no"
	@echo 
	@echo "   Turn on blocking-gravity for bitwise identical runs"
	@echo
	@echo "      gmake bitwise-yes"
	@echo "      gmake bitwise-no"
	@echo 
	@echo "   Include sibling subgrid boundary fix"
	@echo
	@echo "      gmake fluxfix-yes"
	@echo "      gmake fluxfix-no"
	@echo 
	@echo "   Set whether to use HDF4"
	@echo
	@echo "      gmake use-hdf4-yes"
	@echo "      gmake use-hdf4-no"
	@echo
	@echo "   Set whether to use inline python"
	@echo
	@echo "      gmake python-yes"
	@echo "      gmake python-no"
	@echo
	@echo "   Include HYPRE libraries (implicit RT solvers)"
	@echo
	@echo "      gmake hypre-yes"
	@echo "      gmake hypre-no"
	@echo
	@echo "   Include emissivity field"
	@echo
	@echo "      gmake emissivity-yes"
	@echo "      gmake emissivity-no"
	@echo
	@echo "   Set whether to use CUDA (GPU-computing)"
	@echo
	@echo "      gmake cuda-yes"
	@echo "      gmake cuda-no"
	@echo
	@echo "   Set whether to use 4th-order gravity"
	@echo
	@echo "      gmake gravity-4s-yes"
	@echo "      gmake gravity-4s-no"
	@echo

#-----------------------------------------------------------------------

show-flags:
	@echo
	@echo "CPP = `which $(CPP)`"
	@echo "CC  = `which $(CC)`"
	@echo "CXX = `which $(CXX)`"
	@echo "FC  = `which $(FC)`"
	@echo "F90 = `which $(F90)`"
	@echo "LD  = `which $(LD)`"
	@echo ""
	@echo "DEFINES = $(DEFINES)"
	@echo ""
	@echo "INCLUDES = $(INCLUDES)"
	@echo ""
	@echo "CPPFLAGS = $(CPPFLAGS)"
	@echo "CFLAGS   = $(CFLAGS)"
	@echo "CXXFLAGS = $(CXXFLAGS)"
	@echo "FFLAGS   = $(FFLAGS)"
	@echo "F90FLAGS = $(F90FLAGS)"
	@echo "LDFLAGS  = $(LDFLAGS)"
	@echo ""
	@echo "LIBS     = $(LIBS)"
	@echo

#-----------------------------------------------------------------------

show-config:
	@echo
	@echo "   MACHINE: $(MACH_TEXT)"
	@echo "   MACHINE-NAME: $(CONFIG_MACHINE)"
	@echo
	@echo "   PARAMETER_MAX_SUBGRIDS  [max-subgrids-###]                : $(PARAMETER_MAX_SUBGRIDS)"
	@echo "   PARAMETER_MAX_BARYONS  [max-baryons-###]                  : $(PARAMETER_MAX_BARYONS)"
	@echo "   PARAMETER_MAX_TASKS_PER_NODE  [max-tasks-per-node-###]    : $(PARAMETER_MAX_TASKS_PER_NODE)"
	@echo "   PARAMETER_MEMORY_POOL_SIZE  [memory-pool-###]             : $(PARAMETER_MEMORY_POOL_SIZE)"
	@echo
	@echo "   CONFIG_PRECISION  [precision-{32,64}]                     : $(CONFIG_PRECISION)"
	@echo "   CONFIG_PARTICLES  [particles-{32,64,128}]                 : $(CONFIG_PARTICLES)"
	@echo "   CONFIG_INTEGERS  [integers-{32,64}]                       : $(CONFIG_INTEGERS)" 
	@echo "   CONFIG_PARTICLE_IDS  [particle-id-{32,64}]                : $(CONFIG_PARTICLE_IDS)"
	@echo "   CONFIG_INITS  [inits-{32,64}]                             : $(CONFIG_INITS)"
	@echo "   CONFIG_IO  [io-{32,64}]                                   : $(CONFIG_IO)"
	@echo "   CONFIG_USE_MPI  [use-mpi-{yes,no}]                        : $(CONFIG_USE_MPI)"
	@echo "   CONFIG_OBJECT_MODE  [object-mode-{32,64}]                 : $(CONFIG_OBJECT_MODE)"
	@echo "   CONFIG_TASKMAP  [taskmap-{yes,no}]                        : $(CONFIG_TASKMAP)"
	@echo "   CONFIG_PACKED_MEM  [packed-mem-{yes,no}]                  : $(CONFIG_PACKED_MEM)"
	@echo "   CONFIG_LCAPERF  [lcaperf-{yes,no}]                        : $(CONFIG_LCAPERF)"
	@echo "   CONFIG_PAPI  [papi-{yes,no}]                              : $(CONFIG_PAPI)"
	@echo "   CONFIG_PYTHON  [python-{yes,no}]                          : $(CONFIG_PYTHON)"
	@echo "   CONFIG_NEW_PROBLEM_TYPES  [new-problem-types-{yes,no}]    : $(CONFIG_NEW_PROBLEM_TYPES)"
	@echo "   CONFIG_CVODE  [cvode-{yes,no}]                            : $(CONFIG_CVODE)"
	@echo "   CONFIG_ECUDA  [cuda-{yes,no}]                             : $(CONFIG_ECUDA)"
	@echo "   CONFIG_OOC_BOUNDARY  [ooc-boundary-{yes,no}]              : $(CONFIG_OOC_BOUNDARY)"
	@echo "   CONFIG_ACCELERATION_BOUNDARY  [acceleration-boundary-{yes,no}]              : $(CONFIG_ACCELERATION_BOUNDARY)"
	@echo "   CONFIG_OPT  [opt-{warn,debug,cudadebug,high,aggressive}]  : $(CONFIG_OPT)"
	@echo "   CONFIG_TESTING  [testing-{yes,no}]                        : $(CONFIG_TESTING)"
	@echo "   CONFIG_TPVEL  [tpvel-{yes,no}]]                           : $(CONFIG_TPVEL)"
	@echo "   CONFIG_PHOTON  [photon-{yes,no}]                          : $(CONFIG_PHOTON)"
	@echo "   CONFIG_HYPRE  [hypre-{yes,no}]                            : $(CONFIG_HYPRE)"
	@echo "   CONFIG_EMISSIVITY  [emissivity-{yes,no}]                  : $(CONFIG_EMISSIVITY)"
	@echo "   CONFIG_USE_HDF4  [use-hdf4-{yes,no}]                      : $(CONFIG_USE_HDF4)"
	@echo "   CONFIG_BITWISE_IDENTICALITY  [bitwise-{yes,no}]           : $(CONFIG_BITWISE_IDENTICALITY)"
	@echo "   CONFIG_FAST_SIB  [fastsib-{yes,no}]                       : $(CONFIG_FAST_SIB)"
	@echo "   CONFIG_FLUX_FIX  [fluxfix-{yes,no}]                       : $(CONFIG_FLUX_FIX)"
	@echo "   CONFIG_GRAVITY_4S  [gravity-4s-{yes,no}]                  : $(CONFIG_GRAVITY_4S)"
	@echo

#-----------------------------------------------------------------------

.PHONY: suggest-clean
suggest-clean:
	@echo
	@echo " *** Execute 'gmake clean' before rebuilding executables ***"
	@echo

#-----------------------------------------------------------------------

show-version:
	@echo
	@echo "Mercurial Branch   `$(SVN) identify -i`"
	@echo "Mercurial Revision `$(SVN) identify -b`"
	@echo

#-----------------------------------------------------------------------

show-diff:
	@$(SVN) diff

#-----------------------------------------------------------------------
.PHONY: default

default:
	@rm -f $(MAKE_CONFIG_OVERRIDE)
	@touch $(MAKE_CONFIG_OVERRIDE)
	@$(MAKE) show-config
	@$(MAKE) suggest-clean

#-----------------------------------------------------------------------

max-subgrids-%: suggest-clean
	@tmp=.config.temp; \
        grep -v PARAMETER_MAX_SUBGRIDS $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "PARAMETER_MAX_SUBGRIDS = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep PARAMETER_MAX_SUBGRIDS; \
	echo


#-----------------------------------------------------------------------

max-baryons-%: suggest-clean
	@tmp=.config.temp; \
        grep -v PARAMETER_MAX_BARYONS $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "PARAMETER_MAX_BARYONS = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep PARAMETER_MAX_BARYONS; \
	echo


#-----------------------------------------------------------------------

max-tasks-per-node-%: suggest-clean
	@tmp=.config.temp; \
        grep -v PARAMETER_MAX_TASKS_PER_NODE $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "PARAMETER_MAX_TASKS_PER_NODE = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep PARAMETER_MAX_TASKS_PER_NODE; \
	echo


#-----------------------------------------------------------------------

memory-pool-%:
	@tmp=.config.temp; \
        grep -v PARAMETER_MEMORY_POOL_SIZE $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "PARAMETER_MEMORY_POOL_SIZE = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	touch $(TOP_DIR)/src/enzo/enzo.C $(TOP_DIR)/src/enzo/EvolvePhotons.C; \
	$(MAKE)  show-config | grep PARAMETER_MEMORY_POOL_SIZE; \
	echo


#-----------------------------------------------------------------------

machine-%: suggest-clean
	@if [ -e $(ENZO_DIR)/Make.mach.$* ] || [ -e $(HOME)/.enzo/Make.mach.$* ]; then \
           tmp=.config.temp; \
           grep -v CONFIG_MACHINE $(MAKE_CONFIG_MACHINE) > $${tmp}; \
           mv $${tmp} $(MAKE_CONFIG_MACHINE); \
           echo "CONFIG_MACHINE = $*" >> $(MAKE_CONFIG_MACHINE); \
	   $(MAKE)  show-config | grep MACHINE; \
	else \
           echo; \
	   echo "   No such machine file "'"'"Make.mach.$*"'"'; \
           echo; \
        fi; \
	echo

#-----------------------------------------------------------------------

load-config-%:
	@if [ -e $(HOME)/.enzo/Make.settings.$* ]; then \
           @tmp=.config.temp; \
	   cat $(HOME)/.enzo/Make.settings.$* > $(MAKE_CONFIG_OVERRIDE); \
           echo; \
           echo "   CONFIG SETTINGS: $*"; \
	   $(MAKE) show-config; \
	   $(MAKE) suggest-clean; \
        else \
           echo; \
           echo "   No such settings file "'"'"$(HOME)/.enzo/Make.settings.$*"'"'; \
           echo; \
        fi;

#-----------------------------------------------------------------------

save-config-%:
	@tmp=.config.temp; \
	cat $(MAKE_CONFIG_OVERRIDE) > $(HOME)/.enzo/Make.settings.$*; \
	echo; \
	echo "   Settings saved to $(HOME)/.enzo/Make.settings.$*."; \
	echo "   Type "'"'"$(MAKE) load-config-$*"'"'" to reload settings."; \
	echo;

#-----------------------------------------------------------------------

VALID_INTEGERS = integers-32 integers-64
.PHONY: $(VALID_INTEGERS)

integers-32: CONFIG_INTEGERS-32
integers-64: CONFIG_INTEGERS-64
integers-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_INTEGERS)]\n\n"
CONFIG_INTEGERS-%: suggest-clean
	@tmp=.config.temp; \
	grep -v CONFIG_INTEGERS $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
	mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
	echo "CONFIG_INTEGERS = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_INTEGERS; \
	echo

#-----------------------------------------------------------------------

VALID_IDS = particle-id-32 particle-id-64
.PHONY: $(VALID_IDS)

particle-id-32: CONFIG_PARTICLE_IDS-32
particle-id-64: CONFIG_PARTICLE_IDS-64
particle-id-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_IDS)]\n\n"
CONFIG_PARTICLE_IDS-%: suggest-clean
	@tmp=.config.temp; \
	grep -v CONFIG_PARTICLE_IDS $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
	mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
	echo "CONFIG_PARTICLE_IDS = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_PARTICLE_IDS; \
	echo

#-----------------------------------------------------------------------

VALID_PRECISION = precision-32 precision-64
.PHONY: $(VALID_PRECISION)

precision-32: CONFIG_PRECISION-32
precision-64: CONFIG_PRECISION-64
precision-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_PRECISION)]\n\n"
CONFIG_PRECISION-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_PRECISION $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_PRECISION = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_PRECISION; \
	echo

#-----------------------------------------------------------------------

VALID_PARTICLES = particles-32 particles-64 particles-128
.PHONY: $(VALID_PARTICLES)
.PHONY: particles-%

particles-32:  CONFIG_PARTICLES-32
particles-64:  CONFIG_PARTICLES-64
particles-128: CONFIG_PARTICLES-128
	@printf "\nNote that star formation does not work with this option.\n\n"
particles-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_PARTICLES)]\n\n"
CONFIG_PARTICLES-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_PARTICLES $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_PARTICLES = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_PARTICLES; \
	echo

#-----------------------------------------------------------------------

VALID_INITS = inits-32 inits-64
.PHONY: $(VALID_INITS)

inits-32: CONFIG_INITS-32
inits-64: CONFIG_INITS-64
inits-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_INITS)]\n\n"
CONFIG_INITS-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_INITS $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_INITS = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_INITS; \
	echo

#-----------------------------------------------------------------------

VALID_IO = io-32 io-64
.PHONY: $(VALID_IO)

io-32: CONFIG_IO-32
io-64: CONFIG_IO-64
io-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_IO)]\n\n"
CONFIG_IO-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_IO $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_IO = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_IO; \
	echo

#-----------------------------------------------------------------------

VALID_USE-MPI = use-mpi-yes use-mpi-no
.PHONY: $(VALID_USE-MPI)

use-mpi-yes: CONFIG_USE-MPI-yes
use-mpi-no: CONFIG_USE-MPI-no
use-mpi-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_USE-MPI)]\n\n"
CONFIG_USE-MPI-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_USE_MPI $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_USE_MPI = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_USE_MPI; \
	echo

#-----------------------------------------------------------------------

VALID_OBJECT-MODE = object-mode-32 object-mode-64
.PHONY: $(VALID_OBJECT-MODE)

object-mode-32: CONFIG_OBJECT-MODE-32
object-mode-64: CONFIG_OBJECT-MODE-64
object-mode-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_OBJECT-MODE)]\n\n"
CONFIG_OBJECT-MODE-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_OBJECT_MODE $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_OBJECT_MODE = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_OBJECT_MODE; \
	echo

#-----------------------------------------------------------------------

VALID_TASKMAP = taskmap-yes taskmap-no
.PHONY: $(VALID_TASKMAP)

taskmap-yes: CONFIG_TASKMAP-yes
taskmap-no: CONFIG_TASKMAP-no
taskmap-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_TASKMAP)]\n\n"
CONFIG_TASKMAP-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_TASKMAP $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_TASKMAP = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_TASKMAP; \
	echo

#-----------------------------------------------------------------------

VALID_PACKED-MEM = packed-mem-yes packed-mem-no
.PHONY: $(VALID_PACKED-MEM)

packed-mem-yes: CONFIG_PACKED-MEM-yes
packed-mem-no: CONFIG_PACKED-MEM-no
packed-mem-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_PACKED-MEM)]\n\n"
CONFIG_PACKED-MEM-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_PACKED_MEM $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_PACKED_MEM = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_PACKED_MEM; \
	echo

#-----------------------------------------------------------------------

VALID_LCAPERF = lcaperf-yes lcaperf-no
.PHONY: $(VALID_LCAPERF)

lcaperf-yes: CONFIG_LCAPERF-yes
lcaperf-no: CONFIG_LCAPERF-no
lcaperf-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_LCAPERF)]\n\n"
CONFIG_LCAPERF-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_LCAPERF $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_LCAPERF = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_LCAPERF; \
	echo

#-----------------------------------------------------------------------

VALID_PAPI = papi-yes papi-no
.PHONY: $(VALID_PAPI)

papi-yes: CONFIG_PAPI-yes
papi-no: CONFIG_PAPI-no
papi-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_PAPI)]\n\n"
CONFIG_PAPI-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_PAPI $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_PAPI = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_PAPI; \
	echo

#-----------------------------------------------------------------------

VALID_PYTHON = python-yes python-no
.PHONY: $(VALID_PYTHON)

python-yes: CONFIG_PYTHON-yes
python-no: CONFIG_PYTHON-no
python-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_PYTHON)]\n\n"
CONFIG_PYTHON-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_PYTHON $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_PYTHON = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_PYTHON; \
	echo

#-----------------------------------------------------------------------

VALID_PROBLEM_TYPES = new-problem-types-yes new-problem-types-no
.PHONY: $(VALID_PROBLEM_TYPES)

new-problem-types-yes: CONFIG_NEW_PROBLEM_TYPES-yes
new-problem-types-no: CONFIG_NEW_PROBLEM_TYPES-no
new-problem-types-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_NEW_PROBLEM_TYPES)]\n\n"
CONFIG_NEW_PROBLEM_TYPES-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_NEW_PROBLEM_TYPES $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_NEW_PROBLEM_TYPES = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_NEW_PROBLEM_TYPES; \
	echo

#-----------------------------------------------------------------------

VALID_CVODE = cvode-yes cvode-no
.PHONY: $(VALID_CVODE)

cvode-yes: CONFIG_CVODE-yes
cvode-no: CONFIG_CVODE-no
cvode-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_CVODE)]\n\n"
CONFIG_CVODE-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_CVODE $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_CVODE = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_CVODE; \
	echo

#-----------------------------------------------------------------------

VALID_ECUDA = cuda-yes cuda-no
.PHONY: $(VALID_ECUDA)

cuda-yes: CONFIG_ECUDA-yes
cuda-no: CONFIG_ECUDA-no
cuda-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_ECUDA)]\n\n"
CONFIG_ECUDA-%: suggest-clean
	@tmp=.config.temp; \
        echo ""; \
        grep -v CONFIG_ECUDA $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_ECUDA = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_ECUDA; \
	echo

#-----------------------------------------------------------------------

VALID_OOC-BOUNDARY = ooc-boundary-yes ooc-boundary-no
.PHONY: $(VALID_OOC-BOUNDARY)

ooc-boundary-yes: CONFIG_OOC-BOUNDARY-yes
ooc-boundary-no: CONFIG_OOC-BOUNDARY-no
ooc-boundary-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_OOC-BOUNDARY)]\n\n"
CONFIG_OOC-BOUNDARY-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_OOC_BOUNDARY $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_OOC_BOUNDARY = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_OOC_BOUNDARY; \
	echo

#-----------------------------------------------------------------------

VALID_ACCELERATION-BOUNDARY = acceleration-boundary-yes acceleration-boundary-no
.PHONY: $(VALID_ACCELERATION-BOUNDARY)

acceleration-boundary-yes: CONFIG_ACCELERATION-BOUNDARY-yes
acceleration-boundary-no: CONFIG_ACCELERATION-BOUNDARY-no
acceleration-boundary-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_ACCELERATION-BOUNDARY)]\n\n"
CONFIG_ACCELERATION-BOUNDARY-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_ACCELERATION_BOUNDARY $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_ACCELERATION_BOUNDARY = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_ACCELERATION_BOUNDARY; \
	echo

#-----------------------------------------------------------------------

VALID_OPT = opt-warn opt-debug opt-cudadebug opt-high opt-aggressive
.PHONY: $(VALID_OPT)

opt-warn:       CONFIG_OPT-warn
opt-debug:      CONFIG_OPT-debug
opt-cudadebug:  CONFIG_OPT-cudadebug
opt-high:       CONFIG_OPT-high
opt-aggressive: CONFIG_OPT-aggressive
opt-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_OPT)]\n\n"
CONFIG_OPT-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_OPT $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_OPT = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_OPT; \
	echo

#-----------------------------------------------------------------------

VALID_TESTING = testing-yes testing-no
.PHONY: $(VALID_TESTING)

testing-yes: CONFIG_TESTING-yes
testing-no: CONFIG_TESTING-no
testing-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_TESTING)]\n\n"
CONFIG_TESTING-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_TESTING $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_TESTING = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_TESTING; \
	echo

#-----------------------------------------------------------------------

VALID_TPVEL = tpvel-yes tpvel-no
.PHONY: $(VALID_TPVEL)

tpvel-yes: CONFIG_TPVEL-yes
tpvel-no: CONFIG_TPVEL-no
tpvel-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_TPVEL)]\n\n"
CONFIG_TPVEL-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_TPVEL $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_TPVEL = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE) show-config | grep CONFIG_TPVEL; \
	echo

#-----------------------------------------------------------------------

VALID_PHOTON = photon-yes photon-no
.PHONY: $(VALID_PHOTON)

photon-yes: CONFIG_PHOTON-yes
photon-no: CONFIG_PHOTON-no
photon-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_PHOTON)]\n\n"
CONFIG_PHOTON-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_PHOTON $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_PHOTON = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE) show-config | grep CONFIG_PHOTON; \
	echo


#-----------------------------------------------------------------------

VALID_HYPRE = hypre-yes hypre-no
.PHONY: $(VALID_HYPRE)

hypre-yes: CONFIG_HYPRE-yes
hypre-no: CONFIG_HYPRE-no
hypre-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_HYPRE)]\n\n"
CONFIG_HYPRE-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_HYPRE $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_HYPRE = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE) show-config | grep CONFIG_HYPRE; \
	echo

#-----------------------------------------------------------------------

VALID_EMISSIVITY = emissivity-yes emissivity-no
.PHONY: $(VALID_EMISSIVITY)

emissivity-yes: CONFIG_EMISSIVITY-yes
emissivity-no: CONFIG_EMISSIVITY-no
emissivity-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_EMISSIVITY)]\n\n"
CONFIG_EMISSIVITY-%:
	@tmp=.config.temp; \
        grep -v CONFIG_EMISSIVITY $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_EMISSIVITY = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE) show-config | grep CONFIG_EMISSIVITY; \
	echo

#-----------------------------------------------------------------------

VALID_FAST_SIB = fastsib-yes fastsib-no
.PHONY: $(VALID_FAST_SIB)

fastsib-yes: CONFIG_FAST_SIB-yes
fastsib-no: CONFIG_FAST_SIB-no
fastsib-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_FAST_SIB)]\n\n"
CONFIG_FAST_SIB-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_FAST_SIB $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_FAST_SIB = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_FAST_SIB; \
	echo


#-----------------------------------------------------------------------

VALID_BITWISE_IDENTICALITY = bitwise-yes bitwise-no
.PHONY: $(VALID_BITWISE_IDENTICALITY)

bitwise-yes: CONFIG_BITWISE_IDENTICALITY-yes
bitwise-no: CONFIG_BITWISE_IDENTICALITY-no
bitwise-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_BITWISE_IDENTICALITY)]\n\n"
CONFIG_BITWISE_IDENTICALITY-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_BITWISE_IDENTICALITY $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_BITWISE_IDENTICALITY = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_BITWISE_IDENTICALITY; \
	echo


#-----------------------------------------------------------------------

VALID_FLUX_FIX = fluxfix-yes fluxfix-no
.PHONY: $(VALID_FLUX_FIX)

fluxfix-yes: CONFIG_FLUX_FIX-yes
fluxfix-no: CONFIG_FLUX_FIX-no
fluxfix-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_FLUX_FIX)]\n\n"
CONFIG_FLUX_FIX-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_FLUX_FIX $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_FLUX_FIX = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_FLUX_FIX; \
	echo


#-----------------------------------------------------------------------

VALID_USE-HDF4 = use-hdf4-yes use-hdf4-no
.PHONY: $(VALID_USE-HDF4)

use-hdf4-yes: CONFIG_USE-HDF4-yes
use-hdf4-no: CONFIG_USE-HDF4-no
use-hdf4-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_USE-HDF4)]\n\n"
CONFIG_USE-HDF4-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_USE_HDF4 $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_USE_HDF4 = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_USE_HDF4; \
	echo


#-----------------------------------------------------------------------


VALID_GRAVITY_4S = gravity-4s-yes gravity-4s-no
.PHONY: $(VALID_GRAVITY_4S)

gravity-4s-yes: CONFIG_GRAVITY_4S-yes
gravity-4s-no: CONFIG_GRAVITY_4S-no
gravity-4s-%:
	@printf "\n\tInvalid target: $@\n\n\tValid targets: [$(VALID_GRAVITY_4S)]\n\n"
CONFIG_GRAVITY_4S-%: suggest-clean
	@tmp=.config.temp; \
        grep -v CONFIG_GRAVITY_4S $(MAKE_CONFIG_OVERRIDE) > $${tmp}; \
        mv $${tmp} $(MAKE_CONFIG_OVERRIDE); \
        echo "CONFIG_GRAVITY_4S = $*" >> $(MAKE_CONFIG_OVERRIDE); \
	$(MAKE)  show-config | grep CONFIG_GRAVITY_4S; \
	echo


#-----------------------------------------------------------------------