sandialabs / CACTUS

CACTUS (Code for Axial and Cross-flow TUrbine Simulation) is a turbine performance simulation code, based on a free wake vortex method, to study wind turbines and marine hydrokinetic (MHK) devices.
BSD 3-Clause "New" or "Revised" License
20 stars 13 forks source link

Does not use output path given in .inp file #25

Closed danrhouck closed 4 years ago

danrhouck commented 4 years ago

This is a little thing, but it seems to me that the output files are always placed one level above the folders for the airfoil data and geometry. I haven't done thorough testing, but that's where they always go for me. Would be nice if they actually went in the assigned folder.

whophil commented 4 years ago

The path you supply in ConfigOutputs -> OutputPath is taken relative to the path you are executing CACTUS from. I see the correct behavior on Mac. Can you please paste your .in file and the command you used to execute?

danrhouck commented 4 years ago

From the .in file:

&ConfigOutputs

    OutputPath = '../mine/V27TestOutput'

Run command:

drhouck@S1023207 MINGW64 ~/cactus/build
$ ./cactus ../mine/V27.inp
whophil commented 4 years ago

As stated, OutputPath, (and all other paths included in the .in file) are relative to the working directory you executed CACTUS from, not relative to the input file itself. I don't know what your full directory tree looks like, but it seems that output files are being put in the right place.

danrhouck commented 4 years ago

Tree is as follows: CACTUS>build>cactus.exe CACTUS>mine>OutputFolder

I think I have the paths correct, but I'm not certain. This is new to me.

danrhouck commented 4 years ago

My fault. The path needs a final '/' at the end and I did not include that originally. Without the last slash, it ignores the last part of the path and puts it one folder up.