You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with a symmetry grid and want to use the command "nodet_mpi --mirror_y" to analyze side slip cases. I've found some documentation under cape.pyfun.cmd, .cmdrun, and .cmdgen, but can't seem to get anything to work.
I've tried adding the following to the JSON file under RunControl and on its own: cmd: ["mpirun", "-n", "768", "nodet_mpi", "--mirror_y"] cmdgen: ["mpirun", "-n", "768", "nodet_mpi", "--mirror_y"]
Also tried using the RunControl.nodet command, but no luck nodet: ["mirror_y"]
The text was updated successfully, but these errors were encountered:
Update: was able to make it run with some modifications to the cmd.py nodet() function:
cmd.py line 102 indexes cli_nodet with a list item
# Loop through command-line inputs
for k in cli_nodet:
# Get the value
v = cli_nodet[k] #<<< Indexes with list item "k"
# Check the type
if v == True:
# Just an option with no value
cmdi.append('--'+k)
Thanks! It looks like you're running CAPE 1.0 still? No problem, but it's just an interesting data point. Unless I'm mistaken, this should work with using
"RunControl": {
"nodet": {
"mirror_y": true
}
}
The code in cape/pyfun/cmd.py here is assuming that cli_nodet is a dict, but in CAPE 1.0, there's nothing actually checking that...
I'm working with a symmetry grid and want to use the command "nodet_mpi --mirror_y" to analyze side slip cases. I've found some documentation under cape.pyfun.cmd, .cmdrun, and .cmdgen, but can't seem to get anything to work.
I've tried adding the following to the JSON file under RunControl and on its own:
cmd: ["mpirun", "-n", "768", "nodet_mpi", "--mirror_y"]
cmdgen: ["mpirun", "-n", "768", "nodet_mpi", "--mirror_y"]
Also tried using the RunControl.nodet command, but no luck
nodet: ["mirror_y"]
The text was updated successfully, but these errors were encountered: