[ET Trac] [Einstein Toolkit] #1378: provide equivalent of fprintf(stderr, "%s\n", msg) in Fortran

Einstein Toolkit trac-noreply at einsteintoolkit.org
Thu Jun 6 19:37:49 CDT 2013


#1378: provide equivalent of fprintf(stderr, "%s\n", msg) in Fortran
--------------------------+-------------------------------------------------
  Reporter:  rhaas        |       Owner:                     
      Type:  enhancement  |      Status:  new                
  Priority:  minor        |   Milestone:                     
 Component:  Cactus       |     Version:  development version
Resolution:               |    Keywords:                     
--------------------------+-------------------------------------------------

Comment (by knarf):

 I think it should work (read: I didn't test now) to do something like:
 {{{
 character*256 :: warnline
 write(warnline,"(i5,A1,i5)") GRHydro_reflevel, "\n", GRHydro_reflevel
 call CCTK_WARN(1,warnline)
 }}}

 Yes, that would require warnline to be long enough, but that is already
 the case without "\n", and a general problem in Fortan.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1378#comment:3>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list