Mercurial > hg > octave-nkf
view examples/fortransub.f @ 18804:7485f8a8e431
bicubic.m: Deprecate function for 4.2 release.
* NEWS: Announce deprecation.
* scripts/general/bicubic.m: Deleted.
* scripts/deprecated/bicubic.m: Moved from scripts/general. Added warning
message about function being deprecated.
* scripts/deprecated/module.mk: Add deprecated bicubic.m to build system.
* scripts/general/module.mk: Remove original bicubic.m from build system.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 16 Apr 2014 05:57:06 -0700 |
parents | 4b32677b6229 |
children |
line wrap: on
line source
subroutine fortransub (n, a, s) implicit none character*(*) s real*8 a(*) integer*4 i, n, ioerr do i = 1, n if (a(i) .eq. 0d0) then call xstopx ('fortransub: divide by zero') else a(i) = 1d0 / a(i) endif enddo write (unit = s, fmt = '(a,i3,a,a)', iostat = ioerr) $ 'There are ', n, $ ' values in the input vector', char(0) if (ioerr .ne. 0) then call xstopx ('fortransub: error writing string') endif return end