Skip to content

Commit 36af752

Browse files
author
Justin Foley
committed
Changed the scale factor used for the long links.
Only matters for reconstruct 13 and reconstruct 9.
1 parent 22f1030 commit 36af752

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

milc_interface/milc_inverter_utilities.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ namespace milc_interface {
151151
gaugeParam->t_boundary = QUDA_PERIODIC_T; // anti-periodic boundary conditions are built into the gauge field
152152
gaugeParam->gauge_order = QUDA_MILC_GAUGE_ORDER;
153153
gaugeParam->ga_pad = dim[0]*dim[1]*dim[2]/2;
154-
gaugeParam->scale = -1.0/(24.0*gaugeParam->tadpole_coeff*gaugeParam->tadpole_coeff);
154+
//gaugeParam->scale = -1.0/(24.0*gaugeParam->tadpole_coeff*gaugeParam->tadpole_coeff);
155+
gaugeParam->scale = -1.0/(24.0);
155156

156157

157158
// preconditioning...

milc_interface/milc_staggered_inverter_interface.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,16 @@ void qudaMultishiftInvert(int external_precision,
183183
const int long_pad = 3*fat_pad;
184184
gaugeParam.type = QUDA_THREE_LINKS;
185185
gaugeParam.ga_pad = long_pad; // don't know if this will work
186+
gaugeParam.reconstruct = gaugeParam.reconstruct_sloppy = QUDA_RECONSTRUCT_13;
186187
loadGaugeQuda(const_cast<void*>(longlink), &gaugeParam);
187188
#else // single-gpu code
188189
gaugeParam.type = QUDA_GENERAL_LINKS;
189190
gaugeParam.reconstruct = gaugeParam.reconstruct_sloppy = QUDA_RECONSTRUCT_NO;
190191
loadGaugeQuda(const_cast<void*>(fatlink), &gaugeParam);
191192

192193
gaugeParam.type = QUDA_ASQTAD_LONG_LINKS;
193-
gaugeParam.reconstruct = QUDA_RECONSTRUCT_NO;
194-
gaugeParam.reconstruct_sloppy = QUDA_RECONSTRUCT_NO;
194+
gaugeParam.reconstruct = QUDA_RECONSTRUCT_13;
195+
gaugeParam.reconstruct_sloppy = QUDA_RECONSTRUCT_13;
195196
loadGaugeQuda(const_cast<void*>(longlink), &gaugeParam);
196197
#endif
197198
milc_interface::invalidate_quda_gauge = false;
@@ -346,15 +347,16 @@ void qudaInvert(int external_precision,
346347

347348
gaugeParam.type = QUDA_THREE_LINKS;
348349
gaugeParam.ga_pad = long_pad;
350+
gaugeParam.reconstruct = gaugeParam.reconstruct_sloppy = QUDA_RECONSTRUCT_13;
349351
loadGaugeQuda(const_cast<void*>(longlink), &gaugeParam);
350352
#else // single-gpu code
351353
gaugeParam.type = QUDA_GENERAL_LINKS;
352354
gaugeParam.reconstruct = gaugeParam.reconstruct_sloppy = QUDA_RECONSTRUCT_NO;
353355
loadGaugeQuda(const_cast<void*>(fatlink), &gaugeParam);
354356

355357
gaugeParam.type = QUDA_THREE_LINKS;
356-
gaugeParam.reconstruct = QUDA_RECONSTRUCT_NO;
357-
gaugeParam.reconstruct_sloppy = QUDA_RECONSTRUCT_NO;
358+
gaugeParam.reconstruct = QUDA_RECONSTRUCT_13;
359+
gaugeParam.reconstruct_sloppy = QUDA_RECONSTRUCT_13;
358360
loadGaugeQuda(const_cast<void*>(longlink), &gaugeParam);
359361
#endif
360362
milc_interface::invalidate_quda_gauge = false;

0 commit comments

Comments
 (0)