A meteorological model writed by Fortran

I have a work to run a meteorological model through pymc3. But the model is not simple explicit, and it has many files writed by Fortran.
The model runned by a executable file eveytime.
In pymc3, it needs ‘with model’ . so how to write it make the model rationalization in pymc3 ?
can package model in it?

Hi @dreamqin68, you can have a look at this discussion on Github:

In general, the idea is to wrap it as a theano operation and call it within with pm.Model():