Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91947330
dumper_blackdynamite.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 16, 00:49
Size
2 KB
Mime Type
text/x-c++
Expires
Mon, Nov 18, 00:49 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22349161
Attached To
rLIBMULTISCALE LibMultiScale
dumper_blackdynamite.hh
View Options
/**
* @file dumper_blackdynamite.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @date Tue Jul 29 11:44:58 2014
*
* @brief This allows to push the result of computes to BlackDynamite/PostgreSQL database
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* LibMultiScale is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* LibMultiScale is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with LibMultiScale. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __LIBMULTISCALE_DUMPER_BLACK_DYNAMITE_HH__
#define __LIBMULTISCALE_DUMPER_BLACK_DYNAMITE_HH__
/* -------------------------------------------------------------------------- */
#include "dumper.hh"
#include "domain_interface.hh"
#include "compute_concat.hh"
#include <fstream>
#include <blackdynamite.hh>
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
template
<
typename
_Input
>
class
DumperBlackDynamite
:
public
Dumper
<
_Input
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
DumperBlackDynamite
(
const
std
::
string
&
name
,
ComponentLMInterface
&
d
);
~
DumperBlackDynamite
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
void
dump
(
_Input
&
cont
);
void
declareParams
();
void
init
();
protected
:
ComputeConcat
<
_Input
>
compute_concat
;
std
::
ofstream
my_file
;
UInt
rank
;
static
BlackDynamite
::
RunManager
*
bd_run_manager
;
};
/* -------------------------------------------------------------------------- */
__END_LIBMULTISCALE__
#endif
/* __LIBMULTISCALE_DUMPER_BLACK_DYNAMITE_HH__ */
Event Timeline
Log In to Comment