New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 1200 for trunk/AGRIF/LIB/WriteInFile.c – NEMO

Ignore:
Timestamp:
2008-09-24T15:05:20+02:00 (16 years ago)
Author:
rblod
Message:

Adapt Agrif to the new SBC and correct several bugs for agrif (restart writing and reading), see ticket #133
Note : this fix does not work yet on NEC computerq (sxf90/360)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AGRIF/LIB/WriteInFile.c

    r774 r1200  
    5252  if (strlen (s) <= 60) 
    5353    { 
    54       if ( returnlineornot == 0 ) fprintf (filout, "     & %s", s); 
    55       else if ( returnlineornot == 2 ) fprintf (filout, "& %s", s); 
    56       else if ( returnlineornot == 3 ) fprintf (filout, "& %s\n", s); 
    57       else                             fprintf (filout, "     & %s\n", s); 
     54      if ( returnlineornot == 0 ) fprintf (filout, "     &%s", s); 
     55      else if ( returnlineornot == 2 ) fprintf (filout, "&%s", s); 
     56      else if ( returnlineornot == 3 ) fprintf (filout, "&%s\n", s); 
     57      else                             fprintf (filout, "     &%s\n", s); 
    5858      if ( returnlineornot == 0 || 
    5959           returnlineornot == 2 ) colnum=colnum+strlen(s)+6; 
     
    9595      strcpy (&temp[60-size], "\0"); 
    9696 
    97       if ( retour77 == 0 ) fprintf (filout, "     & %s  &\n", temp); 
    98       else fprintf (filout, "     & %s  \n", temp); 
     97      if ( retour77 == 0 ) fprintf (filout, "     &%s&\n", temp); 
     98      else fprintf (filout, "     &%s\n", temp); 
    9999      colnum=0; 
    100100      tofich_reste (filout, (char *) &s[60-size],returnlineornot); 
     
    159159      strcpy (&temp[60-size], "\0"); 
    160160 
    161       if ( retour77 == 0 ) fprintf (filout, "      %s  &\n", temp); 
    162       else fprintf (filout, "      %s  \n", temp); 
     161      if ( retour77 == 0 ) fprintf (filout, "      %s&\n", temp); 
     162      else fprintf (filout, "      %s\n", temp); 
    163163      colnum=0; 
    164164      tofich_reste (filout, (char *) &s[60-size], returnlineornot); 
Note: See TracChangeset for help on using the changeset viewer.