csdms / bmi-c Goto Github PK
View Code? Open in Web Editor NEWBasic Model Interface for C
Home Page: https://bmi.readthedocs.io
License: MIT License
Basic Model Interface for C
Home Page: https://bmi.readthedocs.io
License: MIT License
The entry isn't used to build the project, and it may cause problems for a downstream project that takes information from the pkg-config file.
I am guessing that this function is part of the standard, so I expect to find a function
int BMI_Get_var_itemsize(BMI_model*, const char* name, int* dest);
in the bmilib.h file.
The pkg-config file output from CMake, bmic.pc
, has relative paths:
$ cat /Users/mpiper/anaconda3/envs/bmic/lib/pkgconfig/bmic.pc
Name: bmi-c
Description: The Basic Model Interface for C
URL: https://bmi.readthedocs.io
Version: 2.0
Libs: -Llib -lbmic
Cflags: -Iinclude
Absolute paths are needed, otherwise downstream packages can't find bmi.h
.
Make it look like the README in the bmi-fortran repo.
The header bmi.h
here contains these macro definitions:
#define BMI_SUCCESS (0)
#define BMI_FAILURE (1)
The C++ header bmi.hxx
contains declarations of variables in with those exact same names. Thus, if a source file says
#include <bmi.h>
#include <bmi.hxx>
It will fail to compile, because the compiler will see code that preprocesses to
namespace Bmi {
const int (0) = 0;
const int (1) = 1;
}
This is a potential problem for codebases that want to support BMI modules written in either language, and not have to meticulously separate where the two different BMI language binding headers get included, or in which order.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.