{"id":18847866,"url":"https://github.com/zmoon/very-basic-nuopc-example","last_synced_at":"2026-02-08T11:39:31.144Z","repository":{"id":114822636,"uuid":"530851149","full_name":"zmoon/very-basic-nuopc-example","owner":"zmoon","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-24T18:59:30.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-23T00:40:11.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmoon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-30T22:18:26.000Z","updated_at":"2024-05-24T18:59:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"705cf3e7-7409-4b02-b71b-724754000385","html_url":"https://github.com/zmoon/very-basic-nuopc-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zmoon/very-basic-nuopc-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoon%2Fvery-basic-nuopc-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoon%2Fvery-basic-nuopc-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoon%2Fvery-basic-nuopc-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoon%2Fvery-basic-nuopc-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmoon","download_url":"https://codeload.github.com/zmoon/very-basic-nuopc-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoon%2Fvery-basic-nuopc-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267962802,"owners_count":24172749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T03:09:55.558Z","updated_at":"2026-02-08T11:39:31.028Z","avatar_url":"https://github.com/zmoon.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# very-basic-nuopc-example\n\nThe goal is to demonstrate how an external library (\"model\") can be used\n* [x] in a standalone program\n* [x] in a NUOPC \"single model driver\" framework [^a]\n* [ ] in NUOPC, one-way coupling to a \"data model\"\n* [ ] NUOPC two-way coupling\n\nBuild and run the programs using [`just`](https://github.com/casey/just):\n```bash\njust test\n```\n\n\n[^a]: See the [SingleModelProto](https://github.com/esmf-org/nuopc-app-prototypes/tree/main/SingleModelProto/) example.\n\n## Background\n\n* [NUOPC landing page](https://earthsystemmodeling.org/nuopc/)\n\n## Getting ESMF\n\n*Note that NUOPC is included with ESMF.*\n\n### On NOAA Hera\n\nWe can follow the [hpc-stack usage instructions](https://github.com/NOAA-EMC/hpc-stack/wiki/Official-Installations) to get ESMF.\n\n*Below current as of 2022-09-06*\n\n```sh\nmodule use /scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack\nmodule load hpc/1.2.0\nmodule load hpc-intel/2022.1.2 hpc-impi/2022.1.2\nmodule load esmf/8.3.0\n```\n\nAfter this, `ESMFMKFILE` and other env vars (`env | grep ^ESMF`) are set:\nESMF is ready to go.\n\nPrepare to build:\n```sh\nmodule load cmake/3.20.1\nexport FC=mpiifort\n```\n\n### Installing on Ubuntu\n\n*Tested on WSL2 Ubuntu 20.04.5 LTS; based on [this guide](https://chenzhang.org/notes/gis/installing-esmf-on-ubuntu/)*\n\nBasics:\n```bash\nsudo apt install build-essential gfortran\n```\n\nMinimal but sufficient ESMF deps:\n```bash\nsudo apt install libnetcdf-dev libnetcdff-dev liblapack-dev libopenblas-dev\n```\n\nDownload the source code from [ESMF releases](https://github.com/esmf-org/esmf/releases).\nThe unpacked directory, which contains `build`, `src`, etc., subdirectories,\nis what you use for `ESMF_DIR` below.\n\nSettings:\n```bash\nexport ESMF_DIR=/full/path/to/ESMF/dir\n# export ESMF_INSTALL_PREFIX=/set/if/different/from/ESMF_DIR\n\nexport ESMF_LAPACK=netlib\nexport ESMF_COMPILER=gfortran\nexport ESMF_COMM=mpiuni  # MPI bypass\n\n# system GCC\nexport ESMF_F90COMPILER=/usr/bin/gfortran\nexport ESMF_CCOMPILER=/usr/bin/gcc\nexport ESMF_CXXCOMPILER=/usr/bin/g++\n```\n\nBuild and run some tests (takes minutes):\n```\nmake check\n```\n\nSet `ESMFMKFILE` (location of `esmf.mk`; important for being to find the built library):\n```bash\nexport ESMFMKFILE=$ESMF_INSTALL_PREFIX/lib/libO/Linux.gfortran.64.mpiuni.default/esmf.mk  # e.g.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmoon%2Fvery-basic-nuopc-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmoon%2Fvery-basic-nuopc-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmoon%2Fvery-basic-nuopc-example/lists"}