Closed illorenzo7 closed 1 month ago
@feathern OK, this should be ready to be reviewed. I made logic so as to not touch the old code block that handles the single-domain case. The only place single-domain behavior will change is to throw an error and exit if the user tries to lower the resolution.
FYI I tested this by restarting from a checkpoint in (1) a simulation with a single domain and (2) a simulation with three subdomains. In each simulation, I tried lowering, raising, and not modifying the radial resolution and achieved the expected results.
This pull request should accomplish two main goals:
Allow the user to increase the number of radial points in each Chebyshev sub-domain (even with multiple domains, e.g., ncheby=64, 96 --> ncheby = 96,256) and then restart from a checkpoint with the old (coarse) resolution. Before, the chebyshev coefficients weren't initialized correctly for multiple domains.
Throw an error message and exit if the user tries to lower radial resolution in any subdomain. Before, the code would simply do nothing, likely integrating a bunch of zeros.