2 ! *****************************COPYRIGHT****************************
3 ! (c) British Crown
Copyright 2009, the Met Office.
6 ! Redistribution and
use in source and binary
forms, with or without
7 ! modification, are permitted provided that the
8 ! following conditions are
met:
10 ! * Redistributions of source code must retain the above
11 ! copyright
notice,
this list of conditions and the following
13 ! * Redistributions in binary form must reproduce the above
14 ! copyright
notice,
this list of conditions and the following
15 ! disclaimer in the documentation and/or other materials
16 ! provided with the distribution.
17 ! * Neither the name of the Met Office nor the names of its
18 ! contributors may be used to endorse or promote products
19 ! derived from
this software without specific prior written
22 ! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 ! LIMITED
TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 ! A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28 ! LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 ! DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31 ! (
INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 ! OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 ! *****************************COPYRIGHT*******************************
35 ! *****************************COPYRIGHT*******************************
38 ! Marsaglia CONG algorithm
45 ! convert to range 0-1 (32 bit
only)
46 overflow_32=i2_16*i2_16
47 if ( overflow_32 .le. huge32 ) then
49 ran(irand)=ran(irand)+1
50 ran(irand)=(ran(irand))-
int(ran(irand))
!$Id Turb_fcg_gcssold if(prt_level.ge.1) then print *
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are met
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE!OF THIS SOFTWARE
*****************************COPYRIGHT ****************************c British Crown Copyright
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT
!$Id klon IF(pctsrf(i, is_ter).GT.0.) THEN paire_ter(i)
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY INCIDENTAL
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED TO
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary forms
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT!LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE,!DATA, OR PROFITS;OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY!THEORY OF LIABILITY
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN CONTRACT
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY EXEMPLARY
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE *****************************COPYRIGHT ************************************************************COPYRIGHT *******************************do npoints!Marsaglia CONG algorithm seed(irand)
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY INDIRECT
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT LIABILITY
!$Id we still need to use(a local version of) getin use ioipsl_getincom USE print_control_mod
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright notice
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED INCLUDING
*****************************COPYRIGHT ****************************c British Crown the Met Office!All rights reserved!Redistribution and use in source and binary with or without are permitted provided that the!following conditions are this list of conditions and the following!disclaimer *Redistributions in binary form must reproduce the above!copyright this list of conditions and the following!disclaimer in the documentation and or other materials!provided with the distribution *Neither the name of the Met Office nor the names of its!contributors may be used to endorse or promote products!derived from this software without specific prior written!permission!THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT!LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR!A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT!OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE *****************************COPYRIGHT ************************************************************COPYRIGHT *******************************do irand
INTERFACE subroutine only