Closed cbegeman closed 6 years ago
@cbegeman, it looks like there are changes here related to your ocean slope work, not just debug flags. Is that right? If so, it might be worth working together to disentangle these changes.
@vanroekel, could you review once we've cut this down to just the debug-related changes?
@cbegeman, I think what we want for this PR is for you to rebase only ad04c1c onto master
. Assuming you have my remote as xylar
, make sure you're on your debug_switch
branch, and that would look like:
git rebase --interactive xylar/master
Pick only ad04c1c from the list of commits (delete the line with 4fd990f). Once the rebase is done,
git push --force origin debug_switch
Let me know if that gives you trouble.
Sure, happy to. Just let me know when to jump in.
@xylar Thanks for your help. It looks like I need to resolve a conflict before I can do this rebasing.
@vanroekel Should "make" be called twice in palm_simple_build, once with -f flag, once without?
@cbegeman, could you point to where you are thinking of in the code? The -f flag is normally only used to specify a makefile with a name other than Makefile or makefile. So I would think you shouldn't need to do this twice.
Thanks @cbegeman I missed that. We do need to keep both. The line before the one you reference builds the model. The one after builds the helper programs, most importantly the program to fill the 3d volume netcdf file.
@vanroekel Sounds good. I'm adding the debugging flag only to the model build.
@vanroekel I've rebased the branch, so it should be ready for your review.
@vanroekel I've added the suggested feature and I think I've cleaned up those files. Let me know if you notice anything else.
Thanks for catching that @vanroekel. I think it's ready now.
@xylar I think this is ready to merge unless you have any other comments.
Added an option to palm_simple_build to compile palm in debug mode. compile_lanl was modified to demonstrate this option. Changed clean option from string to logical for consistency between palm_simple_build and palm_simple_run.