Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
clvisc::BulkInfo Class Reference

#include <JETSCAPE/blob/main/external_packages/clvisc_wrapper/include/bulkinfo.h>

+ Collaboration diagram for clvisc::BulkInfo:

Public Member Functions

 BulkInfo (int nx, int ny, int nz, int nx_skip, int ny_skip, int neta_skip, const OpenclBackend &backend, const std::string &compile_option)
 
void add_data (const cl::Buffer &d_ev, const cl::Buffer &d_shear_pi, const cl::Buffer &d_bulk_pi, const cl::Image2D &eos_table)
 
void save (const std::string &fpath)
 
const std::vector< float > & get_data ()
 
const std::vector< std::string > & get_data_info ()
 

Private Attributes

int nx_
 
int ny_
 
int neta_
 
int nx_skip_
 
int ny_skip_
 
int neta_skip_
 
OpenclBackend backend_
 
std::string compile_option_
 
cl::Kernel kernel_bulk3d_
 
std::vector< float > bulk_data_
 
std::vector< std::string > data_info_
 
cl::Buffer d_bulk3d_1step_
 
std::vector< float > h_bulk3d_1step_
 
int nx_out_
 
int ny_out_
 
int neta_out_
 

Detailed Description

Definition at line 53 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 53 of file bulkinfo.h

Constructor & Destructor Documentation

clvisc::BulkInfo::BulkInfo ( int  nx,
int  ny,
int  nz,
int  nx_skip,
int  ny_skip,
int  neta_skip,
const OpenclBackend backend,
const std::string &  compile_option 
)

tell jetscape what data is stored in std::vector<float> bulk_data_

Definition at line 52 of file bulkinfo.cc.

View newest version in sPHENIX GitHub at line 52 of file bulkinfo.cc

References backend_, clvisc::OpenclBackend::BuildProgram(), compile_option_, clvisc::OpenclBackend::CreateBuffer(), d_bulk3d_1step_, data_info_, check_license::err(), ErrorMessage(), h_bulk3d_1step_, kernel_bulk3d_, neta_, neta_out_, neta_skip_, nx_, nx_out_, nx_skip_, ny_, ny_out_, and ny_skip_.

+ Here is the call graph for this function:

Member Function Documentation

void clvisc::BulkInfo::add_data ( const cl::Buffer d_ev,
const cl::Buffer d_shear_pi,
const cl::Buffer d_bulk_pi,
const cl::Image2D eos_table 
)

Definition at line 98 of file bulkinfo.cc.

View newest version in sPHENIX GitHub at line 98 of file bulkinfo.cc

References backend_, bulk_data_, d_bulk3d_1step_, clvisc::OpenclBackend::enqueue_copy(), clvisc::OpenclBackend::enqueue_run(), h_bulk3d_1step_, kernel_bulk3d_, neta_out_, cl::NullRange, nx_out_, ny_out_, and cl::Kernel::setArg().

Referenced by clvisc::CLVisc::evolve().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const std::vector< float > & clvisc::BulkInfo::get_data ( )

Definition at line 116 of file bulkinfo.cc.

View newest version in sPHENIX GitHub at line 116 of file bulkinfo.cc

References bulk_data_.

const std::vector< std::string > & clvisc::BulkInfo::get_data_info ( )

Definition at line 120 of file bulkinfo.cc.

View newest version in sPHENIX GitHub at line 120 of file bulkinfo.cc

References data_info_.

void clvisc::BulkInfo::save ( const std::string &  fpath)

Definition at line 124 of file bulkinfo.cc.

View newest version in sPHENIX GitHub at line 124 of file bulkinfo.cc

References bulk_data_, data_info_, fout, ambiguity_solver_full_chain::idx, neta_out_, nx_out_, and ny_out_.

Member Data Documentation

OpenclBackend clvisc::BulkInfo::backend_
private

Definition at line 60 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 60 of file bulkinfo.h

Referenced by add_data(), and BulkInfo().

std::vector<float> clvisc::BulkInfo::bulk_data_
private

Definition at line 65 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 65 of file bulkinfo.h

Referenced by add_data(), get_data(), and save().

std::string clvisc::BulkInfo::compile_option_
private

Definition at line 61 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 61 of file bulkinfo.h

Referenced by BulkInfo().

cl::Buffer clvisc::BulkInfo::d_bulk3d_1step_
private

Definition at line 68 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 68 of file bulkinfo.h

Referenced by add_data(), and BulkInfo().

std::vector<std::string> clvisc::BulkInfo::data_info_
private

Definition at line 66 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 66 of file bulkinfo.h

Referenced by BulkInfo(), get_data_info(), and save().

std::vector<float> clvisc::BulkInfo::h_bulk3d_1step_
private

Definition at line 69 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 69 of file bulkinfo.h

Referenced by add_data(), and BulkInfo().

cl::Kernel clvisc::BulkInfo::kernel_bulk3d_
private

Definition at line 63 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 63 of file bulkinfo.h

Referenced by add_data(), and BulkInfo().

int clvisc::BulkInfo::neta_
private

Definition at line 56 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 56 of file bulkinfo.h

Referenced by BulkInfo().

int clvisc::BulkInfo::neta_out_
private

Definition at line 73 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 73 of file bulkinfo.h

Referenced by add_data(), BulkInfo(), and save().

int clvisc::BulkInfo::neta_skip_
private

Definition at line 59 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 59 of file bulkinfo.h

Referenced by BulkInfo().

int clvisc::BulkInfo::nx_
private

Definition at line 56 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 56 of file bulkinfo.h

Referenced by BulkInfo().

int clvisc::BulkInfo::nx_out_
private

Definition at line 71 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 71 of file bulkinfo.h

Referenced by add_data(), BulkInfo(), and save().

int clvisc::BulkInfo::nx_skip_
private

Definition at line 57 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 57 of file bulkinfo.h

Referenced by BulkInfo().

int clvisc::BulkInfo::ny_
private

Definition at line 56 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 56 of file bulkinfo.h

Referenced by BulkInfo().

int clvisc::BulkInfo::ny_out_
private

Definition at line 72 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 72 of file bulkinfo.h

Referenced by add_data(), BulkInfo(), and save().

int clvisc::BulkInfo::ny_skip_
private

Definition at line 58 of file bulkinfo.h.

View newest version in sPHENIX GitHub at line 58 of file bulkinfo.h

Referenced by BulkInfo().


The documentation for this class was generated from the following files: