/[MITgcm]/MITgcm/pkg/compon_communic/mitcomponent_register.F
ViewVC logotype

Annotation of /MITgcm/pkg/compon_communic/mitcomponent_register.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Mon Oct 8 23:58:20 2007 UTC (16 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64q, checkpoint64p, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59k, checkpoint59j, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.1: +4 -1 lines
add missing cvs $Header:$ or $Name:$

1 jmc 1.2 C $Header: $
2     C $Name: $
3    
4 jmc 1.1 !=======================================================================
5     subroutine MITCOMPONENT_register( nx, ny, i0, j0 )
6     implicit none
7    
8     ! Arguments
9     integer nx,ny,i0,j0
10    
11     ! MPI variables
12     #include "mpif.h"
13     integer myid, numprocs, ierr, rc
14    
15     ! Predefined constants/arrays
16     #include "CPLR_SIG.h"
17    
18     ! Functions
19     integer mitcplr_match_comp
20     integer generate_tag
21    
22     ! Local
23     integer bi,bj,num_tiles,bibj
24     integer count,datatype,dest,tag,comm
25    
26     ! ------------------------------------------------------------------
27    
28     ! Set up buffer
29     ibuf(1)=1
30     ibuf(2)=nx
31     ibuf(3)=ny
32     ibuf(4)=i0
33     ibuf(5)=j0
34    
35     my_num_tiles=1
36     my_tile_nx(1)=nx
37     my_tile_ny(1)=ny
38     my_tile_i0(1)=i0
39     my_tile_j0(1)=j0
40    
41     ! Send message
42     count=5
43     datatype=MPI_INTEGER
44     dest=my_coupler_rank
45     tag=generate_tag(115,my_rank_in_global,'Register')
46     comm=MPI_COMM_myglobal
47    
48     call MPI_Send( ibuf, count, datatype, dest, tag, comm, ierr )
49 jmc 1.2
50 jmc 1.1 if (ierr.ne.0) then
51     write(LogUnit,*) 'MITCOMPONENT_register: rank(W,G,L)=',
52     & my_rank_in_world,my_rank_in_global,my_rank_in_local,
53     & ' ierr=',ierr
54     stop 'MITCOMPONENT_register: MPI_Send failed'
55     endif
56    
57     ! ------------------------------------------------------------------
58     call flush(LogUnit)
59     return
60     end
61     !=======================================================================

  ViewVC Help
Powered by ViewVC 1.1.22