Skip to content

Commit

Permalink
print name of created file only in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Feb 18, 2017
1 parent 695da0b commit ad2a68a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meta/WriteOut.m
Expand Up @@ -50,6 +50,10 @@

Begin["`Private`"];

DebugPrint[msg___] :=
If[FlexibleSUSY`FSDebugOutput,
Print["Debug<WriteOut>: ", Sequence @@ InputFormOfNonStrings /@ {msg}]];

(*
* @brief Replaces tokens in files.
*
Expand All @@ -72,7 +76,7 @@
cppTemplateFileName = files[[f,2]];
cppFile = Import[cppFileName, "String"];
modifiedCppFile = StringReplace[cppFile, replacementList];
Print[" Writing file ", cppTemplateFileName];
DebugPrint["writing file ", cppTemplateFileName];
Export[cppTemplateFileName, modifiedCppFile, "String"];
];
];
Expand Down

0 comments on commit ad2a68a

Please sign in to comment.