CASP supports interface with FORTRAN code through GFORTRAN compiler which is a part MingGW compiler tool chain. User can add other FORTRAN compilers if required. Following procedure shall be adopted for using existing FORTRAN code.
· Create a primary block as described in Create Primary Blocks section. Create block ports based on number of arguments in FORTRAN code. Generate block template code.
· Call FORTRAN sub-routine from the template code.
· CASP provides a Fortran Demo block under /blocks/UserBlocks where user can re-use the block code as per his requirement. See Tutorial-6 for more information.