I'd say pointers are the way to go. For MPP code where you need halos
negative subscripts are the cleanest way to implement them. We have them
everywhere, though we pass in a derived data type which contains
multiple pointers and a header section with all the size information.
Why not introduce a derived data type for your library, and keep the
number of subroutine arguments down? (Not having written libraries for
outside distribution, I'm not sure how the module information with the
type information is disemminated, but I guess it goes in the library
with everything else)
John
--
John Bray, Room 337, Numerical Weather Prediction, UK Met Office
Work: [log in to unmask], http://fr0400/~frjb (internal only)
+ 44 (0) 1344 854035 (voice), + 44 (0) 1344 854026 (fax)
Home: http://www.cix.co.uk/~vicarage/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|