- Timestamp:
- Aug 2, 2024, 9:58:25 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/cosp2/array_lib.F90
r3358 r5159 2 2 ! Copyright (c) 2015, Regents of the University of Colorado 3 3 ! All rights reserved. 4 ! 4 5 5 ! Redistribution and use in source and binary forms, with or without modification, are 6 6 ! permitted provided that the following conditions are met: 7 ! 7 8 8 ! 1. Redistributions of source code must retain the above copyright notice, this list of 9 9 ! conditions and the following disclaimer. 10 ! 10 11 11 ! 2. Redistributions in binary form must reproduce the above copyright notice, this list 12 12 ! of conditions and the following disclaimer in the documentation and/or other 13 13 ! materials provided with the distribution. 14 ! 14 15 15 ! 3. Neither the name of the copyright holder nor the names of its contributors may be 16 16 ! used to endorse or promote products derived from this software without specific prior 17 17 ! written permission. 18 ! 18 19 19 ! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 20 20 ! EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF … … 26 26 ! LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 27 ! OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 ! 28 29 29 ! History: 30 30 ! 10/16/03 John Haynes - Original version (haynes@atmos.colostate.edu) … … 47 47 ! Finds the index of an array that is closest to a value, plus the 48 48 ! difference between the value found and the value specified 49 ! 49 50 50 ! Inputs: 51 51 ! [list] an array of sequential values … … 53 53 ! Optional input: 54 54 ! [sort] set to 1 if [list] is in unknown/non-sequential order 55 ! 55 56 56 ! Returns: 57 57 ! index of [list] that is closest to [val] 58 ! 58 59 59 ! Optional output: 60 60 ! [dist] set to variable containing [list([result])] - [val] 61 ! 61 62 62 ! Requires: 63 63 ! mrgrnk library 64 ! 64 65 65 ! ########################################################################## 66 66
Note: See TracChangeset
for help on using the changeset viewer.