OpenAtom  Version1.5a
debug_flags.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 ///////////////////////////////////////////////////////////////////////////////
3 ///////////////////////////////////////////////////////////////////////////////
4 /** \file debug_flags.h
5  * Useful debugging flags
6  *
7  */
8 ///////////////////////////////////////////////////////////////////////////////
9 
10 ///////////////////////////////////////////////////////////////////////////////
11 /// Major League Debug Controllers
12 
13 /// do reductions to time each phase of the time step
14 #define _CP_SUBSTEP_TIMING_
15 
16 //-----------------------------------------------------------------------
17 //#define _CP_DEBUG_SCALC_ONLY_ // REALLY scalc only NOTHING ELSE
18 #ifdef _CP_DEBUG_SCALC_ONLY_
19 #define _CP_DEBUG_SFNL_OFF_
20 #define _CP_DEBUG_VKS_OFF_
21 #define _CP_DEBUG_RHO_OFF_ // not really necesary as no path to rho
22 #endif
23 
24 //-----------------------------------------------------------------------
25 //#define _CP_DEBUG_VKS_ONLY_ //what we called scalc only : states make rho but don't send
26 #ifdef _CP_DEBUG_VKS_ONLY_
27 #define _CP_DEBUG_SFNL_OFF_
28 #define _CP_DEBUG_RHO_OFF_ // blocks send to rho from state chares
29 #endif
30 
31 //-----------------------------------------------------------------------
32 //#define _CP_DEBUG_NON_LOCAL_ONLY_ // SFNL + scalc, no density creation
33 #ifdef _CP_DEBUG_NON_LOCAL_ONLY_
34 #define _CP_DEBUG_VKS_OFF_
35 #define _CP_DEBUG_RHO_OFF_ // not really necessary as there is no path to rho
36 #endif
37 
38 //-----------------------------------------------------------------------
39 //#define _CP_DEBUG_HARTEEXT_OFF_ // this leaves everything on but eext/hartree
40 
41 //-----------------------------------------------------------------------
42 /// Debug the PairCalculator and its companion whistles
43 //#define _PAIRCALC_DEBUG_
44 //#define DEBUG_CP_PAIRCALC_ALL
45 #ifdef DEBUG_CP_PAIRCALC_ALL
46  #define _PAIRCALC_CREATE_DEBUG_
47  #define _PAIRCALC_DEBUG_PLACE_
48  #define DEBUG_CP_PAIRCALC_CREATION
49  #define DEBUG_CP_PAIRCALC_COMM
50  #define DEBUG_CP_PAIRCALC_PSIV
51  #define DEBUG_CP_PAIRCALC_RDMA
52  #define DEBUG_CP_PAIRCALC_INPUTDATAHANDLER
53  #define DEBUG_MESSAGEDATACOLLATOR_ALL
54 #endif
55 
56 
57 ///////////////////////////////////////////////////////////////////////////////
58 /// src_charm_driver/paircalc/ckPairCalculator.C and a dozen other places
59 //#define _NAN_CHECK_
60 //#define PRINT_DGEMM_PARAMS
61 
62 ///////////////////////////////////////////////////////////////////////////////
63 /// src_charm_driver/main/groups.C
64 //#define _CP_DEBUG_PSI_OFF_
65 
66 ///////////////////////////////////////////////////////////////////////////////
67 /// src_charm_driver/fft_slab_ctrl
68 //#define _CP_DEBUG_NON_LOCAL_ONLY_
69 //#define _CP_DEBUG_FFTR_VKSR_
70 
71 ///////////////////////////////////////////////////////////////////////////////
72 /// src_charm_driver/utilities/util.C
73 //#define _CP_DEBUG_UTIL_VERBOSE_
74 //#define _CP_DEBUG_LINE_
75 
76 ///////////////////////////////////////////////////////////////////////////////
77 /// include/CPcharmParaInfo.h
78 //#define _CP_DEBUG_PARAINFO_VERBOSE_
79 
80 ///////////////////////////////////////////////////////////////////////////////
81 /// src_charm_driver/cp_density_ctrl/CP_Rho_RealSpacePlane.C :
82 //#define _CP_DEBUG_RHOR_VERBOSE_
83 //#define _CP_DEBUG_RHOR_RHO_
84 //#define _CP_DEBUG_RHOR_VKSA_
85 //#define _CP_DEBUG_RHOR_VKSB_
86 //#define _CP_DEBUG_RHOR_VKSC_
87 //#define _CP_DEBUG_RHOR_VKSD_
88 //#define _CP_DEBUG_RHOR_VKSE_
89 //#define _CP_DEBUG_HARTEEXT_OFF_
90 
91 ///////////////////////////////////////////////////////////////////////////////
92 /// src_charm_driver/cp_density_ctrl/CP_Rho_GSpacePlane.C :
93 //#define _CP_DEBUG_VKS_GSPACE_
94 //#define _CP_DEBUG_VKS_FORCES_
95 //#define _CP_DEBUG_RHOG_VERBOSE_
96 //#define _CP_DEBUG_RHOG_RHOG_
97 //#define _CP_DEBUG_RHOG_VKSA_
98 //#define _CP_DEBUG_HARTEEXT_OFF_
99 
100 ///////////////////////////////////////////////////////////////////////////////
101 /// src_charm_driver/cp_state_ctrl/CP_State_GSpacePlane.C
102 //#define _CP_DEBUG_NON_LOCAL_ONLY_
103 //#define _CP_DEBUG_OLDFORCE_
104 //#define _CP_DEBUG_LMAT_
105 //#define _CP_DEBUG_STATEG_VERBOSE_
106 //#define _CP_DEBUG_DYNAMICS_
107 //#define _CP_DEBUG_ORTHO_OFF_
108 //#define _CP_DEBUG_SFNL_OFF_
109 //#define _CP_DEBUG_PSI_OFF_
110 #define _CP_DEBUG_COEF_SCREEN_
111 //#define _CP_DEBUG_UPDATE_OFF_
112 //#define DEBUG_CP_GSPACE_CREATION
113 //#define DEBUG_CP_GSPACE_PSIV
114 
115 /**
116  * Enables dumping of Psi and Lambda from GSpace
117  * Psi and Lambda are dumped both before being sent to PC ("Bf" suffix)
118  * and immediately after receiving back from PC ("Af" suffix). Note that
119  * the dump files are overwritten at each iteration.
120 */
121 //#define PAIRCALC_TEST_DUMP
122 
123 ///If paircalc test will be run, lambda and psi dumps must be activated
124 #ifdef PAIRCALC_TEST_DUMP
125 #define _CP_GS_DUMP_LAMBDA_
126 #define _CP_GS_DUMP_PSI_
127 #endif
128 /** @note: Only one of these barriers is guaranteed to work at any given time.
129  * Turning on multiple barriers might beat the already convoluted RTH code in GSpaceDriver and crash!!
130  */
131 //#define BARRIER_CP_GSPACE_PSI
132 //#define BARRIER_CP_GSPACE_PSIV
133 //#define BARRIER_CP_PARTICLEPLANE_NONLOCAL
134 //#define BARRIER_CP_GSPACE_IFFT
135 
136 ///////////////////////////////////////////////////////////////////////////////
137 /// src_charm_driver/cp_state_ctrl/CP_State_RealSpacePlane.C :
138 //#define _CP_DEBUG_STATER_VKS_
139 //#define _CP_DEBUG_STATER_VERBOSE_
140 //#define _CP_DEBUG_RHO_OFF_
141 
142 ///////////////////////////////////////////////////////////////////////////////
143 /// src_charm_driver/structure_factor/StructureFactor.C :
144 //#define _CP_DEBUG_SF_CALC_
145 
146 ///////////////////////////////////////////////////////////////////////////////
147 /// src_charm_driver/structure_factor/StructFactorCache.C :
148 //#define _CP_DEBUG_SF_CACHE_
149 
150 ///////////////////////////////////////////////////////////////////////////////
151 /// src_charm_driver/orthog_ctrl/ortho.C
152 //#define _CP_DEBUG_SMAT_
153 //#define _CP_DEBUG_TMAT_
154 //#define _CP_ORTHO_DUMP_LMAT_
155 //#define _CP_ORTHO_DUMP_SMAT_
156 //#define _CP_ORTHO_DUMP_TMAT_
157 //#define _CP_ORTHO_DEBUG_COMPARE_LMAT_
158 //#define _CP_ORTHO_DEBUG_COMPARE_SMAT_
159 //#define _CP_ORTHO_DEBUG_COMPARE_TMAT_
160 
161 ///////////////////////////////////////////////////////////////////////////////
162 /// src_charm_driver/load_balance/MapTable.C
163 //#define _MAP_DEBUG_
164 //#define _MAP_VERBOSE_
165 
166 ///////////////////////////////////////////////////////////////////////////////
167 /// src_piny_physics_v1.0/abinitio_physics/cp_orthog/cp_lowdin.C
168 //#define _CP_DEBUG_NODIAG_
169 
170 ///////////////////////////////////////////////////////////////////////////////
171 /// src_piny_physics_v1.0/abinitio_physics/cp_integrate/cp_min_std.C
172 //#define _CP_DEBUG_NEWFORCE_
173 
174 ///////////////////////////////////////////////////////////////////////////////
175 /// src_piny_physics_v1.0/abinitio_physics/cp_ions/cp_rspace_ion.C
176 /// src_piny_physics_v1.0/classical_physics/integrate/control_integrate.C
177 //#define _CP_DEBUG_ATM_FORC_
178 
179 ///////////////////////////////////////////////////////////////////////////////
180 /// src_piny_physics_v1.0/abinitio_physics/cp_local/cp_hart_ext.C
181 //#define _CP_DEBUG_VKS_HART_EEXT_
182 
183 ///////////////////////////////////////////////////////////////////////////////
184 /// src_piny_physics_v1.0/abinitio_physics/cp_nonlocal/cp_eke.C
185 //#define _CP_DEBUG_OLDFORCE_
186 
187 ///////////////////////////////////////////////////////////////////////////////
188 /// src_piny_physics_v1.0/piny_to_driver/Parainfoinit.C
189 //#define _CP_DEBUG_LINES_PER_PLANE_
190 
191 /// ---- All matrix dumps ----
192 //#define _CP_GS_DUMP_VKS_
193 //#define _CP_GS_DUMP_LAMBDA_
194 //#define _CP_GS_DUMP_PSI_
195 //#define _PAIRCALC_DEBUG_PARANOID_FW_
196 //#define _CP_ORTHO_DUMP_SMAT_
197 //#define _CP_ORTHO_DUMP_TMAT_
198 //#define _CP_ORTHO_DEBUG_COMPARE_TMAT_
199 //#define _CP_ORTHO_DUMP_LMAT_
200 //#define _CP_ORTHO_DUMP_GMAT_
201