-
Notifications
You must be signed in to change notification settings - Fork 1
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
Command line options interface #1
Comments
Hi @davidorme! Yes that would be great if you wanted to improve the code in this repo directly. I will give you write access to the repo. I like the idea of the command line interface. The only other thing I would add is an optional argument to set the geographic bounds of the model run. I can provide some sample code for this. |
Hi @jedokaplan, I did mean to include allowing GST coordinate strings at the command line too! I completely forgot to include it. If I read the code right, the new driver automatically uses the extent and resolution of the input file, as opposed to the original hard coded values of -180/180/-60/90 and 0.5°. The limits can currently be overriden using command line argument 2? I think the best thing to do is for me to create a branch to work on |
Sounds good, please go ahead and I we can merge later. I also think I should make a release of the current version before modifications, just as a milestone. |
I've got a prototype of the code but have run into compilation issues. I don't think this is related to the changes I have made - it seems to be missing a [dorme@login-a BIOME4]$ make
gfortran -c -o parametersmod.o -I/apps/netcdf/4.5.2-fortran/include parametersmod.f90
gfortran -c -o netcdfmod.o -I/apps/netcdf/4.5.2-fortran/include netcdfmod.f90
f951: Fatal Error: Reading module ‘netcdf’ at line 1 column 2: Unexpected EOF
compilation terminated.
make: *** [Makefile:41: netcdfmod.o] Error 1 I also haven't quite figured out how to compile the |
To add |
OK - turned out to be a compiler mismatch. I'm testing using our HPC system, which has a number of available If I compile using The It currently compiles, and takes arguments, but I've broken something downstream. I get this:
|
Can you do a backtrace to see exactly where this is crashing? I suspect it is somewhere in parsing the command line arguments. |
Ohhhh. I was just testing that it read the argument correctly and the |
@davidorme please let me know if we can close this issue. |
Hi @jedokaplan,
I'm helping out Olivia Haas (@omh20), who is going to use Biome4 as part of her PhD with Colin Prentice and Sandy Harrison. We were using the original code ZIP from PMIP, along with a few changes to parameters. I made some alterations to add command line arguments, mostly to make input file handling a little easier:
https://github.com/ImperialCollegeLondon/biome41
Then I found this repo! The new driver and Makefile are a much better starting point to work with, so I just wanted to ask if you had any interest in a command line interface. We can of course fork this, but I thought I'd ask if it was a feature you were interested in adopting.
I see the interface has changed - the contents of
biome4options
andbiome4outvars
files have got much simpler - and I think an interface like this should cover the user options?The text was updated successfully, but these errors were encountered: