fi_operator_save_debug_data.h File Reference

Saves debug data on each fi_operator iteration. More...

#include "save_connection_data.h"
#include "string_formater.h"
#include "calc_well.h"
#include "rr_rw_wr_saver.h"
#include "well_type_helper.h"
#include "member_accessor.h"

Include dependency graph for fi_operator_save_debug_data.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  blue_sky::debug::ww_diveder< well_t >
struct  blue_sky::debug::ww_accessor< well_t >
struct  blue_sky::debug::bw_accessor< well_t >
struct  blue_sky::debug::rr< connection_t >
struct  blue_sky::debug::rw< connection_t >
struct  blue_sky::debug::wr< connection_t >
struct  blue_sky::debug::rate< connection_t >
struct  blue_sky::debug::cur_bhp< connection_t >
struct  blue_sky::debug::density< connection_t >
struct  blue_sky::debug::bulkp< connection_t >

Namespaces

namespace  blue_sky
namespace  blue_sky::debug

Defines

#define SAVE_BOOST_ARRAY(name, size_j)
#define SAVE_ITEM(name)
#define MEMBER_SAVER(name)
#define MEMBER_SAVER_2(name)

Functions

 blue_sky::debug::MEMBER_SAVER (mobility)
 blue_sky::debug::MEMBER_SAVER (p_deriv_mobility)
 blue_sky::debug::MEMBER_SAVER (s_deriv_mobility)
 blue_sky::debug::MEMBER_SAVER (density)
 blue_sky::debug::MEMBER_SAVER (p_deriv_density)
 blue_sky::debug::MEMBER_SAVER (relative_perm)
 blue_sky::debug::MEMBER_SAVER (s_deriv_relative_perm)
 blue_sky::debug::MEMBER_SAVER (invers_visc_fvf)
 blue_sky::debug::MEMBER_SAVER (p_deriv_invers_visc_fvf)
 blue_sky::debug::MEMBER_SAVER (cap_pressure)
 blue_sky::debug::MEMBER_SAVER (s_deriv_cap_pressure)
 blue_sky::debug::MEMBER_SAVER_2 (gor_deriv_invers_fvf)
 blue_sky::debug::MEMBER_SAVER_2 (gor_deriv_invers_viscosity)
 blue_sky::debug::MEMBER_SAVER_2 (gor_deriv_invers_visc_fvf)


Detailed Description

Saves debug data on each fi_operator iteration.

Author:
Sergey Miryanov (sergey-miryanov), sergey.miryanov@gmail.com
Date:
03.02.2009 This source code is released under the terms of the BSD License. See LICENSE for more details.
Todo:
Obsolete, should be removed

Define Documentation

#define MEMBER_SAVER ( name   ) 

Value:

template <typename data_array_t, typename item_t>     \
    struct BOOST_PP_CAT (save_, name)                     \
    {                                                     \
      typedef item_t value_type;                          \
                                                          \
      BOOST_PP_CAT (save_, name) (const data_array_t &data_, size_t size_j_)  \
      : data_ (data_)                                     \
      , size_j_ (size_j_)                                 \
      {                                                   \
      }                                                   \
                                                          \
      size_t                                              \
      size_i () const                                     \
      {                                                   \
        return data_.size ();                             \
      }                                                   \
                                                          \
      size_t                                              \
      size_j () const                                     \
      {                                                   \
        return size_j_;                                   \
      }                                                   \
                                                          \
      item_t                                              \
      get (size_t i, size_t j) const                      \
      {                                                   \
        return data_[i].name[j];                          \
      }                                                   \
                                                          \
      const data_array_t &data_;                          \
      size_t size_j_;                                     \
    };

#define MEMBER_SAVER_2 ( name   ) 

Value:

template <typename data_array_t, typename item_t>     \
    struct BOOST_PP_CAT (save_, name)                     \
    {                                                     \
      typedef item_t value_type;                          \
                                                          \
      BOOST_PP_CAT (save_, name) (const data_array_t &data_)  \
      : data_ (data_)                                     \
      {                                                   \
      }                                                   \
                                                          \
      size_t                                              \
      size_i () const                                     \
      {                                                   \
        return data_.size ();                             \
      }                                                   \
                                                          \
      size_t                                              \
      size_j () const                                     \
      {                                                   \
        return 1;                                         \
      }                                                   \
                                                          \
      item_t                                              \
      get (size_t i, size_t j) const                      \
      {                                                   \
        return data_[i].name;                             \
      }                                                   \
                                                          \
      const data_array_t &data_;                          \
    };

#define SAVE_BOOST_ARRAY ( name,
size_j   ) 

Value:

tools::save_seq_vector (tools::string_formater (std::string (BOOST_PP_STRINGIZE(name)) + std::string (".bs.%d.txt"), iter_counter).str) \
    .save_via_fn (debug::BOOST_PP_CAT (save_, name) <data_array_t, item_t> (calc_model_->data, size_j));

#define SAVE_ITEM ( name   ) 

Value:

tools::save_seq_vector (tools::string_formater (std::string (BOOST_PP_STRINGIZE(name)) + std::string (".bs.%d.txt"), iter_counter).str) \
    .save_via_fn (debug::BOOST_PP_CAT (save_, name) <data_array_t, item_t> (calc_model_->data));


Generated on Fri Nov 13 12:07:12 2009 for TheBSEagleProject by  doxygen 1.5.8