CABLE-LSM / benchcab

Tool for evaluation of CABLE land surface model
https://benchcab.readthedocs.io/en/latest/
Apache License 2.0
2 stars 4 forks source link

Should `benchcab` have only one main program entry point? #21

Closed SeanBryan51 closed 1 year ago

SeanBryan51 commented 1 year ago

Currently, benchcab uses two main program entry points: benchcab and benchsiterun.

Problem:

Is there a better solution where benchsiterun can only be invoked internally by benchcab and not by the user?

A possible solution could be:

  1. Adding a flag to benchcab that disables the job script submission and instead lets users run CABLE on the same compute node they happen to run benchcab from.
  2. Implement the ability to run specific steps of benchcab in isolation. For example, the checkout step, the build step, and the run step.

In the job script, instead of running benchsiterun, we can run benchcab with a flag that specifies the run step to be executed (preventing any the job script related code from being executed).

ccarouge commented 1 year ago

I see the issue here. I agree that having benchsiterun as a cli isn't ideal. It isn't meant to be run independently. A solution using a flag seems logical to me.