- Timestamp:
- 09/15/16 17:52:05 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SOURCES/Netcdf-routines/sortie_netcdf_GRISLI_mod.0.2-hassine.f90
r66 r86 111 111 !< des variables dans chaque fichier 112 112 integer,dimension(:),allocatable:: idef_time !< 1 ou 0 si le temp est defini ou non 113 integer,dimension(:),allocatable:: idef_sealevel !< 1 ou 0 si sealevel est defini ou non 113 114 integer,dimension(:,:),allocatable:: idef !< 1 ou 0 si la varaible est defini ou non 114 115 integer,dimension(:),allocatable :: num_ncdf_file !< compteur des fichiers netcdf par class … … 504 505 if (.not.allocated(nrecs) .and. .not.allocated(nbsnap) .and. .not.allocated(num_ncdf_file) & 505 506 .and. .not. allocated(idef) .and. .not. allocated(idef_time)) then 506 allocate(nrecs(nclassout),nbsnap(nclassout),num_ncdf_file(nclassout),idef(nclassout,ntab),idef_time(nclassout) )507 allocate(nrecs(nclassout),nbsnap(nclassout),num_ncdf_file(nclassout),idef(nclassout,ntab),idef_time(nclassout),idef_sealevel(nclassout)) 507 508 nrecs=1 508 509 idef=0 509 510 idef_time=0 511 idef_sealevel=0 510 512 num_ncdf_file=0 511 513 end if … … 516 518 idef(j,:)=0 517 519 idef_time(j)=0 520 idef_sealevel(j)=0 518 521 nbsnap(j)=0 519 522 ! numerote le fichier sortie … … 558 561 idef(posis,:)=0 559 562 idef_time(posis)=0 563 idef_sealevel(posis)=0 560 564 nbsnap(posis)=0 561 565 ! numerote le fichier sortie … … 654 658 character(len=20) :: nametmp !< nom intermediaire 655 659 real*8,pointer,dimension(:) :: liste_time => null() !< liste des snapshot des variables ecrites en netcdf 660 real*8,pointer,dimension(:) :: sealevel_p => null() !< pointeur vers sealevel pour ecriture netcdf 656 661 real*8,pointer,dimension(:) :: x,y,x1,y1,z,nzzm 657 662 real*8,pointer,dimension(:,:):: lat,lon => null() … … 683 688 liste_time(1)=-1 684 689 end if 690 if (.not.associated(sealevel_p)) then 691 allocate(sealevel_p(1)) 692 sealevel_p(1)=-1 693 end if 685 694 686 695 liste_times: if ((liste_time(1) .ne.timetmp) .or.(liste_time(1) .eq. -1) ) then 687 696 liste_time(1)= timetmp 697 sealevel_p(1)= sealevel 688 698 ! print*,"time outncdf=",liste_time(1) 689 699 write(charint,'(i0)') floor(timetmp) … … 720 730 ! ecrit le temps 721 731 call write_ncdf_var('time','time',trim(fil_sortie(k)),liste_time,nbsnap(k)+1,idef_time(k),'double') 732 733 sealevel_p=sealevel 734 call write_ncdf_var('sealevel','time',trim(fil_sortie(k)),sealevel_p,nrecs(k),idef_sealevel(k),'double') 722 735 723 736 fait = .FALSE.
Note: See TracChangeset
for help on using the changeset viewer.