The OASIS Coupler Forum

  HOME

One source field -> multiple target fields ?

Up to Transformations and interpolations

Posted by Anonymous at March 18 2014

Hello, 

One question about an Oasis-MCT functionality : is it possible with OASIS-MCT to have one source field and multiple target fields, i.e only one "put_prism" in source model and multiple "get_prism" in target model (target fields would be the result of different interpolations of the same source field) ? 

Thanks ! Arnaud

Posted by Anonymous at March 19 2014

Hi Arnaud,

Yes, it is possible to send one source field to multiple target fields using one "oasis_put" and multiple "oasis_get", but you have to define a different restart file for the source field for each target field (you have more documentation at the address: http://www.cerfacs.fr/oa4web/oasis3-mct/oasis3mct_UserGuide/node65.html.php). Below is an example of the corresponding namcouple file when one field is sent to two targets fields :

M3FLD05 M1FLD05 3 7200 4 rst4.nc EXPOUT

96 72 182 149 lmdz torc

P 0 P 2

CHECKIN MAPPING BLASNEW CHECKOUT

INT=1

rmp_lmdz_to_torc_BILINEA.nc src

1.0 1

CONSTANT -8000.0

INT=1

#

M3FLD05 M2FLD05 3 10800 3 rst5.nc EXPOUT

96 72 182 149 lmdz lmdz

P 0 P 0

CHECKIN LOCTRANS CHECKOUT

INT=1

AVERAGE

INT=1

 

with rst4.nc :

netcdf rst4 {

dimensions:

M3FLD01_ny = 72 ;

M3FLD01_nx = 96 ;

variables:

double M3FLD05(M3FLD01_ny, M3FLD01_nx) ;

// global attributes:

:NCO = "4.0.8" ;

:history = "Mon Jun 17 10:54:20 2013: ncrename -v M3FLD01,M3FLD05 rst4.nc" ;

}

and in rst5.nc :

netcdf rst5 {

dimensions:

M3FLD01_ny = 72 ;

M3FLD01_nx = 96 ;

variables:

double M3FLD05(M3FLD01_ny, M3FLD01_nx) ;

// global attributes:

:NCO = "4.0.8" ;

:history = "Mon Jun 17 10:54:20 2013: ncrename -v M3FLD01,M3FLD05 rst4.nc" ;

}

Best regards, Laure

Posted by Anonymous at March 20 2014

Thanks Laure. T

his new functionality is very nice. 

One question about your answer : is it really mandatory to have different restart files ? In the case of same time transformations, same coupling frequency,...and only different spatial interpolations, it seems to me that the source fields stored in restart files would be the same...and so, that would work with the same restart file...what do you think ? 

Does the following example work ? 
M3FLD05 M1FLD05 3 7200 4 rst4.nc EXPOUT 
96 72 182 149 lmdz torc 
P 0 P 2 
CHECKIN MAPPING BLASNEW CHECKOUT 
INT=1 
rmp_lmdz_to_torc_BILINEA_1.nc src 
1.0 1 
CONSTANT -8000.0 
INT=1
# 
M3FLD05 M2FLD05 3 7200 4 rst4.nc EXPOUT 
96 72 182 149 lmdz torc 
P 0 P 2 
CHECKIN MAPPING BLASNEW CHECKOUT 
INT=1 
rmp_lmdz_to_torc_BILINEA_2.nc src 
1.0 1 
CONSTANT -8000.0 
INT=1 

Thanks ! Regards, Arnaud

Posted by Anonymous at March 21 2014

Hi Arnaud, 

Yes you are right, in the case of same time transformations, same coupling frequency,...and only different spatial interpolations, it is possible to use only one restart file for the source file, but it is a particular case. 

Best regards, Laure
Reply to this