Skip to content

Commit

Permalink
Thorn.m: Eliminate some code in the case that no symmetries need to b…
Browse files Browse the repository at this point in the history
…e registered

This avoids a compiler warning about an unused variable
  • Loading branch information
ianhinder committed Nov 21, 2012
1 parent e2d5691 commit 9d2954e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tools/CodeGen/Thorn.m
Expand Up @@ -679,13 +679,15 @@
{"cctk.h", "cctk_Arguments.h", "cctk_Parameters.h", "Symmetry.h"}],

DefineCCTKFunction[ thornName <> "_RegisterSymmetries", "void",
If[Length[spec] > 0,
{CommentedBlock["array holding symmetry definitions",

"CCTK_INT sym[3];\n\n"],

CommentedBlock["Register symmetries of grid functions",

Map[SymmetriesBlock, spec]]}
Map[SymmetriesBlock, spec]]},
{}]
]
};

Expand Down

0 comments on commit 9d2954e

Please sign in to comment.