Hi,
thanks for the code source. I downloaded the files and saved them in the same folder, but when trying to run the Python scripts, I get an error.
The error is in any file where the code is vars(parser.parse_args()). For example. in the make_structured_grid.py in line 266, I get the following error: Exception has occurred: SystemExit 2.
Since no more info about the error is given, I changed that line for this:
try:
args = vars(parser.parse_args())
except SystemExit as e:
print("Error parsing command line arguments:", e)
And when running this, the error is the following:
usage: make_structured_mesh.py [-h] -v {A,B,C} [-r] -nx NUMBER_OF_CELLS_X -ny NUMBER_OF_CELLS_Y [-nz NUMBER_OF_CELLS_Z]
make_structured_mesh.py: error: the following arguments are required: -v/--variant, -nx/--number-of-cells-x, -ny/--number-of-cells-y
Error parsing command line arguments: 2
I would very much appreciate your support in this. Thank you so much for your time!
Best regards,
Jose.
Hi,
thanks for the code source. I downloaded the files and saved them in the same folder, but when trying to run the Python scripts, I get an error.
The error is in any file where the code is vars(parser.parse_args()). For example. in the make_structured_grid.py in line 266, I get the following error: Exception has occurred: SystemExit 2.
Since no more info about the error is given, I changed that line for this:
try:
args = vars(parser.parse_args())
except SystemExit as e:
print("Error parsing command line arguments:", e)
And when running this, the error is the following:
usage: make_structured_mesh.py [-h] -v {A,B,C} [-r] -nx NUMBER_OF_CELLS_X -ny NUMBER_OF_CELLS_Y [-nz NUMBER_OF_CELLS_Z]
make_structured_mesh.py: error: the following arguments are required: -v/--variant, -nx/--number-of-cells-x, -ny/--number-of-cells-y
Error parsing command line arguments: 2
I would very much appreciate your support in this. Thank you so much for your time!
Best regards,
Jose.