| 1 | initial version |
There is a way to do this but it requires a bit of fortran knowledge. Use the system call in your fortran model:
call system(command [,status])
status = system(command)
where
command is the command you want to perform (python.exe your_code.py) characterstatus is the return status integerThere is some considerations to take here:
It seems to be a rough and dirty way of developing models, but you have to think differently: this system calls can allow to communicate your models with other systems (even between multiple simulations, internet information, etc.), while performing a primary execution through fortran.
I hope it helps. Open your mind.
| 2 | No.2 Revision |
There is a way to do this but it requires a bit of fortran knowledge. Use the system call in your fortran model:
call system(command [,status])
status = system(command)
where
command is the command you want to perform (python.exe your_code.py) characterstatus is the return status integerThere is are some considerations to take here:
It seems to be a rough and dirty way of developing models, but you have to think differently: this system calls can allow to communicate your models with other systems (even between multiple simulations, internet information, etc.), while performing a primary execution through fortran.
I hope it helps. Open your mind.
whit loves you. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.