diff --git a/cxxfem/utils.py b/cxxfem/utils.py index 00a2ae1ed638491017bc3e81b41df61e9171ad11..ea716035294931061bb7ba9f1bae1f8e39e031ae 100644 --- a/cxxfem/utils.py +++ b/cxxfem/utils.py @@ -46,6 +46,8 @@ def parseargs(): "--nogui", help="disable any graphical output", action="store_true") parser.add_argument( "--post", help="display existing results", action="store_true") + parser.add_argument( + "--csv", help="convert results to csv", action="store_true") parser.add_argument("-k", help="nb of threads", type=int, default=os.cpu_count()) parser.add_argument('file', help='python file', type=str, nargs='?') args = parser.parse_args() diff --git a/fossils.py b/fossils.py index cb2cf1719ab25935c526d7dc116579386820306f..5fcf064c42db3459370c2f09eb319de36a7c3373 100755 --- a/fossils.py +++ b/fossils.py @@ -385,6 +385,8 @@ if __name__ == "__main__": workspace = None # use default if args.post: action = 'post' + elif args.csv: + action = 'csv' else: action = 'run' testname = os.path.abspath(args.file)