You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Hello, I would like to to calculate a global net flux value withing OpenIFS to verify my conservative remapping. ECMWF hides MPI functionalities under MPL. There is limited MPL documentation in Part VI of the documentations but it does not include MPL_ALLREDUCE.

MPI_ALLREDUCE has an input and an output parameter, but MPL_ALLREDUCE seemingly has only input. How do I get the SUM oder MAX values out?


Examples:

MPI_ALLREDUCE within FESOM2:

    call MPI_AllREDUCE(shortwave_local, shortwave_global,  2, MPI_DOUBLE_PRECISION, MPI_SUM, MPI_COMM_FESOM, MPIerr)


MPL_ALLREDUCE within OpenIFS:

    CALL MPL_ALLREDUCE(shortwave_local,'SUM',ldreprod=.FALSE.,CDSTRING='AWICOUPLING:')


I use the function as it is used in many other places within OpenIFS. Does it work for 1-d variables and returns in the input variable? Did I misunderstand something here?


Cheers,

Jan

  • No labels