{"id":23502977,"url":"https://github.com/csdms/bmi-cxx","last_synced_at":"2026-02-11T06:31:19.205Z","repository":{"id":26311566,"uuid":"29759595","full_name":"csdms/bmi-cxx","owner":"csdms","description":"Basic Model Interface for C++","archived":false,"fork":false,"pushed_at":"2024-06-24T21:19:01.000Z","size":50,"stargazers_count":0,"open_issues_count":3,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-10T06:40:03.055Z","etag":null,"topics":["bmi","csdms","cxx"],"latest_commit_sha":null,"homepage":"https://bmi.csdms.io","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csdms.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":"2015-01-24T00:17:45.000Z","updated_at":"2024-12-03T22:38:43.000Z","dependencies_parsed_at":"2024-06-28T10:16:27.857Z","dependency_job_id":null,"html_url":"https://github.com/csdms/bmi-cxx","commit_stats":{"total_commits":57,"total_committers":3,"mean_commits":19.0,"dds":0.4736842105263158,"last_synced_commit":"2037cf825958011af2b6690b75b67397c1b54e9e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/csdms/bmi-cxx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fbmi-cxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fbmi-cxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fbmi-cxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fbmi-cxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csdms","download_url":"https://codeload.github.com/csdms/bmi-cxx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fbmi-cxx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29328261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bmi","csdms","cxx"],"created_at":"2024-12-25T08:12:14.758Z","updated_at":"2026-02-11T06:31:19.187Z","avatar_url":"https://github.com/csdms.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![DOI](https://zenodo.org/badge/29759595.svg)](https://zenodo.org/badge/latestdoi/29759595)\n[![Build and Test](https://github.com/csdms/bmi-cxx/actions/workflows/test.yml/badge.svg)](https://github.com/csdms/bmi-cxx/actions/workflows/test.yml)\n[![Anaconda-Server Badge](https://anaconda.org/conda-forge/bmi-cxx/badges/version.svg)](https://anaconda.org/conda-forge/bmi-cxx)\n[![Anaconda-Server Badge](https://anaconda.org/conda-forge/bmi-cxx/badges/platforms.svg)](https://anaconda.org/conda-forge/bmi-cxx)\n[![Anaconda-Server Badge](https://anaconda.org/conda-forge/bmi-cxx/badges/downloads.svg)](https://anaconda.org/conda-forge/bmi-cxx)\n\n# bmi-cxx\n\nC++ bindings for the CSDMS\n[Basic Model Interface](https://bmi.readthedocs.io).\n\n\n## Build/Install\n\nThe C++ BMI bindings can be built on Linux, macOS, and Windows.\nInstructions are given below.\n\n**Prerequisites:**\n* A C++ compiler\n* CMake\n\nAlternately,\n[conda binaries](https://anaconda.org/conda-forge/bmi-cxx)\nhave been built for Linux, macOS, and Windows.\nInstall the C++ BMI bindings (no build needed)\ninto an Anaconda distribution with\n\n    conda install bmi-cxx -c conda-forge\n\n### Linux and macOS\n\nTo install the C++ BMI bindings from source with cmake, run\n\n    mkdir _build \u0026\u0026 cd _build\n    cmake .. -DCMAKE_INSTALL_PREFIX=\u003cpath-to-installation\u003e\n    make install\n\nwhere `\u003cpath-to-installation\u003e` is the base directory\nin which to install the bindings (`/usr/local` is the default).\nWhen using a conda environment,\nuse the `$CONDA_PREFIX` environment variable.\n\nThe installation will look like:\n\n```bash\n.\n|-- include\n|   `-- bmi.hxx\n`-- lib\n    `-- pkgconfig\n        `-- bmicxx.pc\n```\n\n### Windows\n\nAn additional prerequisite is needed for Windows:\n\n* Microsoft Visual Studio 2017 or Microsoft Build Tools for Visual Studio 2017\n\nTo configure and install the C++ BMI bindings from source with cmake,\nrun the following in a [Developer Command Prompt](https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs)\n\n    mkdir _build \u0026\u0026 cd _build\n    cmake .. ^\n\t  -G \"NMake Makefiles\" ^\n\t  -DCMAKE_INSTALL_PREFIX=\u003cpath-to-installation\u003e ^\n\t  -DCMAKE_BUILD_TYPE=Release\n\tcmake --build . --target install --config Release\n\nwhere `\u003cpath-to-installation\u003e` is the base directory in which to install the bindings.\nThe default is `\"C:\\Program Files (x86)\"`.\nNote that quotes and an absolute path are needed.\nWhen using a conda environment, use `\"%CONDA_PREFIX%\\Library\"`.\n\n## Use\n\nTo write a BMI for a model,\ninclude the `bmi.hxx` header and implement all the BMI functions\nincluded in the interface defined therein.\nBMI functions that aren't used\n(e.g., `get_grid_x` for a uniform rectilinear grid)\ncan simply return the BMI_FAILURE status code.\nA sample implementation is given in the\nhttps://github.com/csdms/bmi-example-cxx\nrepository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsdms%2Fbmi-cxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsdms%2Fbmi-cxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsdms%2Fbmi-cxx/lists"}