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 774 for trunk/AGRIF/LIB/UtilFortran.c – NEMO

Ignore:
Timestamp:
2007-12-18T17:45:53+01:00 (16 years ago)
Author:
rblod
Message:

Update Agrif, see ticket:#39

File:
1 edited

Legend:

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

    r663 r774  
    3131/* knowledge of the CeCILL-C license and that you accept its terms.           */ 
    3232/******************************************************************************/ 
    33 /* version 1.6                                                                */ 
     33/* version 1.7                                                                */ 
    3434/******************************************************************************/ 
    3535#include <stdio.h> 
     
    268268   newvar = (listnom *)malloc(sizeof(listnom)); 
    269269   strcpy(newvar->o_nom,nom); 
     270   Save_Length(nom,23); 
    270271   newvar->suiv = NULL; 
    271272 
     
    297298   listnom *parcours_nomprec; 
    298299   int out; 
    299    char ligne[LONGNOM]; 
    300  
    301    if ( firstpass == 0 ) 
    302    { 
     300   char ligne[LONG_C]; 
     301 
     302   if ( firstpass == 0 ) 
     303   { 
     304      parcours_nomprec = (listnom *)NULL; 
    303305      parcours_nom = List_NameOfModule; 
    304306      out = 0 ; 
     
    382384   listnom *parcours_nomprec; 
    383385   int out; 
    384    char ligne[LONGNOM]; 
    385  
    386    if ( firstpass == 0 ) 
    387    { 
     386   char ligne[LONG_C]; 
     387 
     388   if ( firstpass == 0 ) 
     389   { 
     390      parcours_nomprec = (listnom *)NULL; 
    388391      parcours_nom = List_NameOfModule; 
    389392      out = 0 ; 
     
    558561{ 
    559562   listvar *parcours; 
    560    int out; 
    561563 
    562564   if ( firstpass == 1 ) 
     
    590592         newvar = (listname *)malloc(sizeof(listname)); 
    591593         strcpy(newvar->n_name,nom); 
     594         Save_Length(nom,20); 
    592595         newvar->suiv = NULL; 
    593596         List_Pointer_Var = newvar; 
     
    611614              newvar = (listname *)malloc(sizeof(listname)); 
    612615              strcpy(newvar->n_name,nom); 
     616              Save_Length(nom,20); 
    613617              newvar->suiv = NULL; 
    614618              parcours->suiv = newvar; 
Note: See TracChangeset for help on using the changeset viewer.