Difference between revisions of "IXFplus Y"

From LIBISIS
Jump to navigation Jump to search
m
 
m
 
Line 5: Line 5:
  
  
==F90 syntax==
+
===F90 syntax===
  
  

Latest revision as of 08:48, 4 April 2008

This is an interface to the IXFarray_Y_plus_dataset_2d and IXFdataset_1d_Y_plus_dataset_2d methods.

These subroutines will either add together a scalar 1-D array or an IXTdataset_1d object to every column of an IXTdataset_2d object. The order of the arguments is fixed.


F90 syntax

use IXMdataset_2d
use IXMdataset_1d
type(IXTdataset_2d):: d2d, wres
type(IXTdataset_1d):: d1d
real(dp)::scalar1d(:)
type(IXTstatus)::status
:
!using interface
call IXFplus_Y(wres,d2d,scalar1d,status) ! wres=d2d+scalar1d
call IXFplus_Y(wres,d2d,d1d,status) ! wres=d2d+d1d

!using specific methods
call IXFarray_Y_plus_dataset_2d(wres,d2d,scalar1d,status) ! wres=d2d+scalar1d
call IXFdataset_1d_Y_plus_dataset_2d(wres,d2d,d1d,status) ! wres=d2d+d1d