]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix execution of generate_lapack_templates.
authorDavid Wells <drwells@email.unc.edu>
Tue, 24 Jul 2018 15:27:47 +0000 (11:27 -0400)
committerDavid Wells <drwells@email.unc.edu>
Tue, 24 Jul 2018 15:30:30 +0000 (11:30 -0400)
contrib/utilities/generate_lapack_templates

index 5ad6d73dc88a09049668eee718746d139c538ed7..c012707b6e67ccec55a1d1d15b6ee00d71efc584 100755 (executable)
@@ -287,15 +287,6 @@ class FortranRoutine:
 
             assert found_type
 
-        # for line in self.lines:
-        #     print(line)
-
-        # print("const arguments: ", end='')
-        # print(self.const_arguments)
-        # print(self.general_name)
-        # print(self.arguments)
-        # print([(key, value) for (key, value) in self.arguments_by_type.items()])
-
     def is_subroutine(self):
         """Return whether or not the routine is a SUBROUTINE. It might also be a
         FUNCTION, which is not yet implemented.
@@ -529,7 +520,6 @@ def main():
         args["fp_guarded_subroutines"] = "lapack_templates_data/fp_subroutines"
     if args["output_file"] is None:
         args["output_file"] = "lapack_templates.h"
-    print(args)
 
     with open(args["lapack_subroutines"]) as lapack_handle:
         for line in lapack_handle:
@@ -648,3 +638,7 @@ def main():
         print("DEAL_II_NAMESPACE_CLOSE", file=output)
         print("", file=output)
         print("#endif", file=output)
+
+
+if __name__ == '__main__':
+    main()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.