csdms / help-desk

The CSDMS Help Desk. Ask questions. Get answers (about CSDMS products and services).
MIT License
6 stars 1 forks source link

Can I build one C language model and one FORTRAN language model using BMI and coupled in pymt? #163

Open lj-cug opened 2 years ago

lj-cug commented 2 years ago

Dear Sir or Ms: Now I have one model coded by C Language and one model coded by FORTRAN language. I want to couple these two model components within pymt. Is this feasible? Thanks Best Regards Li Jian

mdpiper commented 2 years ago

Hi, @lj-cug! Yes, you should be able to couple the two models in pymt. It will take a few steps, though.

Is it correct that you have written a BMI for each model? If so, the next step is to use the babelizer to turn the models into components--Python packages that can be imported through pymt. See the babelizer documentation--there's even an example of applying the babelizer to a model written in C.