00001 // Copyright (C) 2003-2004 CEREA 00002 // Author: Vivien Mallet 00003 // 00004 // CEREA (http://www.enpc.fr/cerea) is a joint laboratory of 00005 // ENPC (http://www.enpc.fr) and EDF R&D (http://www.edf.fr). 00006 // 00007 // This file is part of AtmoData library. 00008 // AtmoData library is a tool for data processing in atmospheric 00009 // sciences. 00010 // 00011 // AtmoData is free software; you can redistribute it and/or modify 00012 // it under the terms of the GNU General Public License as published by 00013 // the Free Software Foundation; either version 2 of the License, or 00014 // (at your option) any later version. 00015 // 00016 // AtmoData is distributed in the hope that it will be useful, 00017 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 // GNU General Public License (file "license") for more details. 00020 // 00021 // For more information, please see the AtmoData home page: 00022 // http://spacetown.free.fr/lib/atmodata 00023 00024 00025 #ifndef ATMODATA_FILE_KZ_HXX 00026 00027 namespace AtmoData 00028 { 00029 00031 00035 template <class T, class T0> 00036 inline T min(T x, T0 y) 00037 { 00038 00039 return x<y?x:y; 00040 00041 } 00042 00044 00048 template <class T, class T0> 00049 inline T max(T x, T0 y) 00050 { 00051 00052 return x>y?x:y; 00053 00054 } 00055 00056 template<class TU, class TV, class TTp, class T, class TG> 00057 void ComputeLouisKz(Data<TU, 4, TG>& U, Data<TV, 4, TG>& V, 00058 Data<TTp, 4, TG>& Tp, Data<T, 4, TG>& Kz, 00059 T L0 = T(100), T B = T(5), 00060 T C = T(5), T D = T(5), T z0 = T(1), 00061 T a = T(0.115), T b = T(0.175), T delta_z0 = T(0.01), 00062 T Ka = T(0.4)); 00063 00064 } // namespace AtmoData. 00065 00066 #define ATMODATA_FILE_KZ_HXX 00067 #endif