Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble issuing Fun3d nodet command line inputs #36

Open
akolegraff opened this issue Sep 30, 2024 · 2 comments
Open

Trouble issuing Fun3d nodet command line inputs #36

akolegraff opened this issue Sep 30, 2024 · 2 comments

Comments

@akolegraff
Copy link

akolegraff commented Sep 30, 2024

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"]

@akolegraff
Copy link
Author

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)

@nasa-ddalle
Copy link
Collaborator

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...

Let me know if this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants