External Procedures: functions, subroutines & modules in Fortran |
![]() Tutorials on Fortran by www.giuseppeforte.me is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. |
In this example I quickly review the example Montecarlo evaluation of π, introducing the concepts of functions, subroutines and modules in Fortran. Such concepts are not actually fundamentals and they can be neglected and still it would be possible to code a well working scientific program. However, external procedure improve the customization of the program, which is a must, especially when two or more people are working on the same code.
EXAMPLE - II: Montecarlo evaluation of π (revisited)
In this example:
|
Download the source code and the technical sheet (it is completely free: just have fun! :-) )
In order to compile and run the source codes given in the attached Listings, refer to the instructions in section before starting ![]()
![]()
![]()
|