Re: skip an item to WRITE using a FORMAT
From: Phillip Helbig---remove CLOTHES to reply (helbig_at_astro.multiCLOTHESvax.de)
Date: 12/08/04
- Next message: Steve Lionel: "Re: Fortran compilers for multi-core chips"
- Previous message: Janne Blomqvist: "Re: Intel and pgi compiler difference"
- In reply to: beliavsky_at_aol.com: "skip an item to WRITE using a FORMAT"
- Next in thread: beliavsky_at_aol.com: "Re: skip an item to WRITE using a FORMAT"
- Reply: beliavsky_at_aol.com: "Re: skip an item to WRITE using a FORMAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 8 Dec 2004 18:45:48 +0000 (UTC)
In article <1102524349.769695.131020@c13g2000cwb.googlegroups.com>,
beliavsky@aol.com writes:
> Is it possible to skip the WRITE'ing of an item in an output list by
> modifying the FORMAT? For example, to print elements [1,2,4] of array
> ivec(1:4) I can just write
>
> write (*,"(100i6)") ivec((/1,2,4/))
>
> but I would like to do it as
>
> write (*,fmt_skip) ivec
>
> where fmt_skip tells the compiler to skip printing ivec(3). I want to
> be able to change the output of a program by changing the format
> string, which can be read from a text file, rather than changing the
> source code. It would be nice if something like
The FORMAT can be a character variable, which of course you can read
from a text file. Or am I missing something?
- Next message: Steve Lionel: "Re: Fortran compilers for multi-core chips"
- Previous message: Janne Blomqvist: "Re: Intel and pgi compiler difference"
- In reply to: beliavsky_at_aol.com: "skip an item to WRITE using a FORMAT"
- Next in thread: beliavsky_at_aol.com: "Re: skip an item to WRITE using a FORMAT"
- Reply: beliavsky_at_aol.com: "Re: skip an item to WRITE using a FORMAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|