Changeset 22389


Ignore:
Timestamp:
02/05/18 10:36:16 (7 years ago)
Author:
seroussi
Message:

CHG: fixed intercomm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/main/issm_ocean.cpp

    r22376 r22389  
    1010        /*diverse:*/
    1111        int    icecommsize;
    12         int    rankzeros[2];
    1312        int    my_rank,my_local_rank,my_size,my_local_size;
    1413        ISSM_MPI_Comm worldcomm;
     
    3130        icecommsize=(int) strtol(argv[2], (char **)NULL, 10);
    3231
    33         /*Buil array of who is rank 0 of their own group:*/
    34         rankzeros[0]=0;
    35         rankzeros[1]=icecommsize;
    36 
    3732        printf("Ice: My global rank: %i My world size: %i \n",my_rank,my_size);
    3833
     
    4540        printf("Ice: My global rank: %i My local rank: %i My world size: %i My local size: %i\n",my_rank,my_local_rank,my_size,my_local_size);
    4641
    47         ISSM_MPI_Intercomm_create( modelcomm, 0, worldcomm, rankzeros[1], 0, &tomitgcmcomm);
     42        ISSM_MPI_Intercomm_create( modelcomm, 0, worldcomm, my_local_size, 0, &tomitgcmcomm);
    4843
    4944        /*Initialize femmodel from arguments provided command line: */
     
    6661        delete femmodel;
    6762
     63        printf("-------------- file: issm_ocean.cpp line: %i\n",__LINE__);
    6864        /*Finalize environment:*/
    6965        EnvironmentFinalize();
    7066
     67        printf("-------------- file: issm_ocean.cpp line: %i\n",__LINE__);
    7168        /*Finalize exception trapping: */
    7269        ExceptionTrapEnd();
Note: See TracChangeset for help on using the changeset viewer.