-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update C and Fortran docs examples (#97)
* Rename conda env file for C example * Match C example babel.toml with 'babelize sample-config' output * Update C example through babelizing * Rename C example [skip ci] * Update reference to C example from Fortran example * Update C example through installation [skip ci] * Replace Finder image with 'tree' output to show final directory structure This hopefully makes the result clearer and removes a binary file from the repo. [skip-ci] * Include bmi-tester in example environment * Move parameters for C example to their own directory * Move Python examples to c directory * Include pymt in example environment * Update Python examples for C heat model * Update location of C Python example * Finish updating C example [skip-ci] * Show a smaller tree for final result * Update Fortran environment file; relax bmi-tester version requirement * Update HeatF babelizer config file * Minor edits; fix typos * Add Fortran-Python examples * Fix typo * Update the Fortran example to match the C example * Add news fragment * Add code of conduct document to repo and docs * Remove obsolete docs makefiles * Add news fragments --------- Co-authored-by: mcflugen <[email protected]>
- Loading branch information
Showing
25 changed files
with
445 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Code of Conduct | ||
--------------- | ||
|
||
Everyone participating in this project is governed by the CSDMS `Code of Conduct`_. | ||
By participating, you are expected to uphold this code. | ||
|
||
.. Links | ||
.. _Code of Conduct: https://github.com/csdms/project/blob/main/CODE-OF-CONDUCT.md |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
[library] | ||
[library.HeatModel] | ||
# See https://babelizer.readthedocs.io/ for more information | ||
|
||
# Describe the library being wrapped. | ||
[library.HeatC] | ||
language = "c" | ||
library = "bmiheatc" | ||
header = "bmi_heat.h" | ||
entry_point = "register_bmi_heat" | ||
|
||
# Describe compiler options need to build the library being wrapped. | ||
[build] | ||
undef_macros = [] | ||
define_macros = [] | ||
|
@@ -13,17 +16,26 @@ library_dirs = [] | |
include_dirs = [] | ||
extra_compile_args = [] | ||
|
||
# Describe the newly wrapped package. | ||
[package] | ||
name = "pymt_heatc" | ||
requirements = [""] | ||
requirements = [] | ||
|
||
[info] | ||
github_username = "pymt-lab" | ||
package_author = "csdms" | ||
package_author_email = "[email protected]" | ||
package_license = "MIT" | ||
summary = "PyMT plugin for the C heat model" | ||
package_license = "MIT License" | ||
summary = "PyMT component for the C heat model" | ||
|
||
[ci] | ||
python_version = ["3.9"] | ||
os = ["linux", "mac", "windows"] | ||
python_version = [ | ||
"3.10", | ||
"3.11", | ||
"3.12", | ||
] | ||
os = [ | ||
"linux", | ||
"mac", | ||
"windows", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
[library.HeatModel] | ||
# See https://babelizer.readthedocs.io/ for more information | ||
|
||
# Describe the library being wrapped. | ||
[library.HeatF] | ||
language = "fortran" | ||
library = "bmiheatf" | ||
header = "" | ||
entry_point = "bmi_heat" | ||
|
||
# Describe compiler options need to build the library being wrapped. | ||
[build] | ||
undef_macros = [] | ||
define_macros = [] | ||
|
@@ -12,17 +16,26 @@ library_dirs = [] | |
include_dirs = [] | ||
extra_compile_args = [] | ||
|
||
# Describe the newly wrapped package. | ||
[package] | ||
name = "pymt_heatf" | ||
requirements = [""] | ||
requirements = [] | ||
|
||
[info] | ||
github_username = "pymt-lab" | ||
package_author = "csdms" | ||
package_author_email = "[email protected]" | ||
package_license = "MIT License" | ||
summary = "PyMT plugin for the Fortran heat model" | ||
summary = "PyMT component for the Fortran heat model" | ||
|
||
[ci] | ||
python_version = ["3.9"] | ||
os = ["linux", "mac", "windows"] | ||
python_version = [ | ||
"3.10", | ||
"3.11", | ||
"3.12", | ||
] | ||
os = [ | ||
"linux", | ||
"mac", | ||
"windows", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../../CODE-OF-CONDUCT.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.