Skip to content

Commit

Permalink
Fix bug in FieldKey string creation in ColorSpinorField::create_comms…
Browse files Browse the repository at this point in the history
…_batch
  • Loading branch information
maddyscientist committed Dec 18, 2024
1 parent cec881a commit ab4d968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/color_spinor_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,12 +843,12 @@ namespace quda
FieldKey<ColorSpinorField> key;
key.volume = v.VolString();
key.aux = v.AuxString();
char aux[32];
char aux[48];
strcpy(aux, ",nFace=");
u32toa(aux + 7, nFace);
strcpy(aux + 8, ",ghost_batch=");
u32toa(aux + 21, v.size());
if (spin_project && v.Nspin() > 1) strcat(aux, "spin_project");
if (spin_project && v.Nspin() > 1) strcat(aux, ",spin_project");
key.aux += aux;

return FieldTmp<ColorSpinorField>(key, param);
Expand Down

0 comments on commit ab4d968

Please sign in to comment.