00001 #ifdef CH_LANG_CC 00002 /* 00003 * _______ __ 00004 * / ___/ / ___ __ _ / / ___ 00005 * / /__/ _ \/ _ \/ V \/ _ \/ _ \ 00006 * \___/_//_/\___/_/_/_/_.__/\___/ 00007 * Please refer to Copyright.txt, in Chombo's root directory. 00008 */ 00009 #endif 00010 00011 #ifndef _COMPUTEENERGY_H_ 00012 #define _COMPUTEENERGY_H_ 00013 00014 #include "REAL.H" 00015 #include "Vector.H" 00016 #include "LevelData.H" 00017 #include "FArrayBox.H" 00018 #include "UsingNamespace.H" 00019 00021 00023 Real computeEnergy(const Vector<LevelData<FArrayBox>* >& a_phi, 00024 const Vector<LevelData<FArrayBox>* >& a_pi, 00025 const Vector<int>& a_nRefFine, 00026 Real a_dxCrse, 00027 Real a_lambda); 00028 00030 Real computeEnergy(const LevelData<FArrayBox>& a_phi, 00031 const LevelData<FArrayBox>& a_pi, 00032 const DisjointBoxLayout* a_finerGrids, 00033 int a_nRefFine, 00034 Real a_dx, 00035 Real a_lambda); 00036 #endif