Something off with -journalfile option

Something is off when I provide this option “-journalfile” ‘…/mesh_cubit_gen/_output/test_import/test_import.jou’"

Commands will be journaled to ‘…/mesh_cubit_gen/_output/test_importtest_import.jou’

Progress

Saving CUBIT file ‘…/mesh_cubit_gen/_output/test_import/test_import.cub’

As far as I can tell, that is by design. Executing the journal file in another directory switches the working directory. I haven’t found a way around that yet other than modifying your journal file by adding a cd "your_current_directory".

The other option would be to convert the journal file to python and execute it as a python script. The webinar “Powered by Python” Coreform Webinars is a good introduction to python in Cubit.

Karl

not sure I provided enough info sorry about that:

I would expect the journal being in the following path:
“…/mesh_cubit_gen/_output/test_import/test_import.jou”

But somehow the code merge the name of the parent directory and the file in “test_importtest_import.jou” and fail because it does not find the folder.

What OS are you using and which version? I seldom use the -journalfile option so there could be something there that I’ve not seen.

Thanks,
Karl

MacOS Big Sur Version 11.6
and
CoreFrom Cubit 2021.5.0

Thanks