oceanmodeling / ufs-coastal-app

UFS Coastal Application is a NUOPC based application implemented following UFS best practices to couple coastal ocean models and other domains (Sea Ice, Atmosphere, Wave, Inland Hydrology, ...)
https://oceanmodeling.github.io/ufs-coastal-app/
Other
5 stars 3 forks source link

Testing first app-level build and UWtools workflow #3

Open janahaddad opened 5 months ago

janahaddad commented 5 months ago

@janahaddad I also update application level build to accommodate the change in the repo name. It is in the main branc at this point and tested on Hercules. Here are the commands that I am using,

  • checkout app

git clone --recursive https://github.com/oceanmodeling/ufs-coastal-app.git

cd ufs-coastal-app
  • build model

./build.sh --app=CSTLS --compiler=intel --build-dir=$PWD/build --install-dir=$PWD/install --platform=hercules

So, this compiles DATM+SCHSIM configuration on MSU's Hercules with intel compiler. All the executables are in $PWD/install/bin directory (i.e. model executable is named as ufs_model and tools related with SCHSIM are also in the same directory). Of course, I still need to work on app level build to fix the remaining issues but this is good starting point. I am not sure I could able to update the documentation to remove the all the references to ufs-coastal but I'll let you know if I could.

Originally posted by @uturuncoglu in #71

janahaddad commented 1 month ago

Testing this on Hercules & Hera:

I am trying 4 tests:

CSLTS on Hercules

CSTLW on Hercules

@uturuncoglu I'll keep working on this and add my findings here. Next step will be to test your UWtools installation and workflow steps from the slides.

janahaddad commented 1 month ago

Ok I see now, it's just moving everything to /install/bin/ including ufs_model.exe and schism tools. It's throwing error at L264 because there's no build/bin in this case.

Will test on Hera next and then try your UWtools workflow. Is there a reason not to add the CTSLW option at this point @uturuncoglu ?

janahaddad commented 1 month ago

CSTLS on Hera

CSTLW on Hera

janahaddad commented 1 month ago

Testing UW Tools installation steps on Hercules

  $ cd /work/noaa/nosofs/janahadd/ufs-coastal-app-20240920-cstls/sorc/uwtools

# create conda environment: 
  $ module load miniconda3/24.3.0
  $ conda create --prefix ../python/envs/uw-env
  $ conda activate ../python/envs/uw-env
# install conda build and verify tools
  $ conda install -c conda-forge --override-channels conda-build conda-verify

# build and install uwtools
  $ conda build recipe -c conda-forge --override-channels
  $ conda install -c ../../python/envs/uw-env/conda-bld uwtools
conda install -c ../python/envs/mybase/conda-bld uwtools