These are chat archives for scemama/irpf90
IRPF90 is a Fortran90 preprocessor written in Python for programming using the Implicit Reference to Parameters (IRP) method. It simplifies the development of large fortran codes in the field of scientific high performance computing.
@maxlevesque I find a "horrible" trick if you realy need to read
mmax from stdin. You can do (sry @scemama ...) a :
mmax_is_built = .FALSE. call provide_mmax
It will work ; i guess. But i don't know how many horrible side effect this trick will have.
@maxlevesque A more irp-ich version is something like this i guess :
BEGIN_PROVIDER [integer, mmax] print*, " initial value" read (*,"(I3)") mmax END_PROVIDER SUBROUTINE update_mmax implicit none print*, "update" read (*,"(I3)") mmax TOUCH mmax end update_mmax
program icule print*, mmax call update_mmax() print*, mmax end program icule
It will read from stdin again ; like you asked.
PS : More simply this :
program toto print*, mmax read (*,"(I3)") mmax print*, mmax end program toto