64template<
typename T,
typename K>
130 void set_projection2D(
K*,
K*,
K*,
K*,
K*,
K*,
int,
int,
int,
int,
int,
int);
195template <
typename T,
typename K>
220template <
typename T,
typename K>
230 std::cout <<
"Error: Unknown file format" << std::endl;
242template <
typename T,
typename K>
264template <
typename T,
typename K>
277template <
typename T,
typename K>
309template <
typename T,
typename K>
345template <
typename T,
typename K>
370template <
typename T,
typename K>
390template <
typename T,
typename K>
423template <
typename T,
typename K>
463template <
typename T,
typename K>
509template <
typename T,
typename K>
591template <
typename T,
typename K>
642template <
typename T,
typename K>
699template <
typename T,
typename K>
748template <
typename T,
typename K>
784template <
typename T,
typename K>
788 file_bt.open(
Input, std::ifstream::in | std::ifstream::binary);
793 char *
buffer =
new char [120];
802 std::cout <<
"Test format DT-Grid: No return statement, binary zeros found" << std::endl;
803 std::cout <<
"The file was detected to be of type binary" << std::endl;
810 std::cout <<
"Test format DT-Grid: No return statement, no binary zeros" << std::endl;
811 std::cout <<
"The file was detected to be of type ASCII" << std::endl;
815 std::cout <<
"Test format DT-Grid: No return statement, binary zeros found" << std::endl;
816 std::cout <<
"The file was detected to be of type binary" << std::endl;
821 std::cout <<
"Test format DT-Grid: Return statement found" << std::endl;
822 std::cout <<
"The file was detected to be of type ASCII" << std::endl;
838template <
typename T,
typename K>
900 std::cout <<
"Type of grid: Excluded volume" << std::endl;
902 std::cout <<
"Type of grid: Potential/Energy" << std::endl;
904 std::cout <<
"Type of grid: Unknown/Not-Set" << std::endl;
907 std::cout <<
"DT-Grid Header information: " << std::endl;
908 std::cout <<
"Length of Value array:\t" <<
len_Value << std::endl;
909 std::cout <<
"Length of xCoord array:\t" <<
len_xcoord<< std::endl;
910 std::cout <<
"Length of yCoord array:\t" <<
len_ycoord << std::endl;
911 std::cout <<
"Length of zCoord array:\t" <<
len_zcoord << std::endl;
912 std::cout <<
"Length of acc1D array:\t" <<
len_acc << std::endl;
913 std::cout <<
"Length of acc2D array:\t" <<
len_acc2 << std::endl;
914 std::cout <<
"Length of acc3D array:\t" <<
len_acc3 << std::endl;
915 std::cout <<
"Length of proj1D array:\t" <<
len_projection << std::endl;
916 std::cout <<
"Length of proj2D array:\t" <<
len_projection2 << std::endl << std::endl;
937 if (
typeid(
T) ==
typeid(
bool))
1049template <
typename T,
typename K>
1144 std::cout <<
"Type of grid: Excluded volume" << std::endl;
1146 std::cout <<
"Type of grid: Potential/Energy" << std::endl;
1148 std::cout <<
"Type of grid: Unknown/Not-Set" << std::endl;
1151 std::cout <<
"DT-Grid Header information: " << std::endl;
1152 std::cout <<
"Length of Value array:\t" <<
len_Value << std::endl;
1153 std::cout <<
"Length of xCoord array:\t" <<
len_xcoord<< std::endl;
1154 std::cout <<
"Length of yCoord array:\t" <<
len_ycoord << std::endl;
1155 std::cout <<
"Length of zCoord array:\t" <<
len_zcoord << std::endl;
1156 std::cout <<
"Length of acc1D array:\t" <<
len_acc << std::endl;
1157 std::cout <<
"Length of acc2D array:\t" <<
len_acc2 << std::endl;
1158 std::cout <<
"Length of acc3D array:\t" <<
len_acc3 << std::endl;
1159 std::cout <<
"Length of proj1D array:\t" <<
len_projection << std::endl;
1160 std::cout <<
"Length of proj2D array:\t" <<
len_projection2 << std::endl << std::endl;
1179 if (
typeid(
T) ==
typeid(
bool))
1286template <
typename T,
typename K>
1294 gb = 1024 * 1024 * 1024;
1296 if (((
float)
val / (
float)
gb) >= 1.0) {
1298 std::cout <<
"Size of DT-Grid data structure is " <<
dtgrid_size <<
" GB" << std::endl;
1301 if (((
float)
val / (
float)
mb) >= 1.0) {
1303 std::cout <<
"Size of DT-Grid data structure is " <<
dtgrid_size <<
" MB" << std::endl;
1307 std::cout <<
"Size of DT-Grid data structure is " <<
dtgrid_size <<
" KB" << std::endl;
Define the array for storing pairs of indices.
Define the array for storing pointers into ArrayPrs.
Define arrays of regular type used in any of the DT-Grid layers.
Define 2D DT-Grid class and group its functions.
Definition DTGrid3D.hpp:65
int idummy3
Definition DTGrid3D.hpp:148
int Length_of_Ptr_List_3D
Definition DTGrid3D.hpp:80
struct DTGrid3D::@1 origin
hold the coordinates (in x, y and z) of the grid origin.
int grdflag
Definition DTGrid3D.hpp:144
float dummy5
Definition DTGrid3D.hpp:157
T access_fast(int, int, int)
Random access function.
Definition DTGrid3D.hpp:391
float dummy7
Definition DTGrid3D.hpp:159
float z
Definition DTGrid3D.hpp:122
DTGrid3D(char *, T, T)
DTGrid3D constructor.
Definition DTGrid3D.hpp:221
T gamma_o
Definition DTGrid3D.hpp:83
void getCellyz(T *, int, int, int, typename ArrayPrs< K >::PairArray *)
Random access function for grid cells (y direction, DTGrid2D).
Definition DTGrid3D.hpp:643
float dummy3
Definition DTGrid3D.hpp:155
float dummy6
Definition DTGrid3D.hpp:158
char * Title
Definition DTGrid3D.hpp:143
float x
Definition DTGrid3D.hpp:120
ArrayReg< T > * Value_List_3D
Definition DTGrid3D.hpp:72
void format_ascii(char *)
Open and Read the ascii grid file.
Definition DTGrid3D.hpp:1050
int iform
grid file format: binary = 0; ascii = 1
Definition DTGrid3D.hpp:86
struct DTGrid3D::@2::origin o
void test_format_dtgrid(char *)
Determine the DT-Grid file format.
Definition DTGrid3D.hpp:785
int grid_type
grid type: exclusion grid = 0; normal grid = 1
Definition DTGrid3D.hpp:89
float y
Definition DTGrid3D.hpp:121
void format_binary(char *)
Open and Read the binary grid file.
Definition DTGrid3D.hpp:839
~DTGrid3D()
DTGrid3D destructor.
Definition DTGrid3D.hpp:196
void set_gamma_values(T, T)
Set the default gamma value.
Definition DTGrid3D.hpp:371
float scale
scaling factor
Definition DTGrid3D.hpp:92
struct DTGrid3D::@0 dimensions
grid dimensions in x, y and z directions given by i, j and k, respectively
int j
Definition DTGrid3D.hpp:114
T access_fast_z(int, typename ArrayPrs< K >::PairArray *)
Random access function for DTGrid3D.
Definition DTGrid3D.hpp:464
float dummy1
Definition DTGrid3D.hpp:153
DTGrid2D< T, K > * proj2D
Definition DTGrid3D.hpp:76
T gamma_i
Definition DTGrid3D.hpp:82
void set_zcoord_list(K *, int)
zCoord array setup
Definition DTGrid3D.hpp:265
void size_ds(unsigned int)
Estimate the grid file size.
Definition DTGrid3D.hpp:1287
void Reset_pointers_3D(void)
void set_value_list_3D(T *, int)
DTGrid3D 'value' array setup.
Definition DTGrid3D.hpp:243
ArrayPtr< T, K > * Ptr_List_3D
Definition DTGrid3D.hpp:74
T access_fast_yz(int, int, typename ArrayPrs< K >::PairArray *)
Random access function for DTGrid2D.
Definition DTGrid3D.hpp:424
int Length_of_Zcoord_List
Definition DTGrid3D.hpp:79
float spacing
Definition DTGrid3D.hpp:93
int i
Definition DTGrid3D.hpp:113
void set_projection2D(K *, K *, K *, K *, K *, K *, int, int, int, int, int, int)
proj2D setup
Definition DTGrid3D.hpp:310
int idummy2
Definition DTGrid3D.hpp:147
void set_uhbd_parameters(float, float, float, float, float, int, int, int)
Reset pointers that temporarily store addresses for random access.
Definition DTGrid3D.hpp:346
bool excl_accessxyz(int, int, int)
int idummy4
Definition DTGrid3D.hpp:149
int Length_of_Value_List_3D
Definition DTGrid3D.hpp:78
ArrayPrs< K > * Zcoord_List
Definition DTGrid3D.hpp:73
T * getCell2(T *, int, int, int)
Random access to grid cells. (2nd version)
Definition DTGrid3D.hpp:749
int type_of_grid(void)
Definition DTGrid3D.hpp:179
float dummy4
Definition DTGrid3D.hpp:156
struct DTGrid3D::@2 uhbd
UHBD header information.
T scfct
Definition DTGrid3D.hpp:91
void getCellz(T *, int, int, int, typename ArrayPrs< K >::PairArray *)
A random access function suited for excluded volume grids, based on the function.
Definition DTGrid3D.hpp:592
void set_ptr_list_3D(K *, int)
acc (3D) array setup
Definition DTGrid3D.hpp:278
int k
Definition DTGrid3D.hpp:115
int idummy5
Definition DTGrid3D.hpp:150
struct DTGrid3D::@2::dimensions dim
int idummy1
Definition DTGrid3D.hpp:146
T * getCell(T *, int, int, int)
Random access to grid cells.
Definition DTGrid3D.hpp:700
int one
Definition DTGrid3D.hpp:145
T accessxyz(int, int, int)
Random access function.
Definition DTGrid3D.hpp:510
float dummy2
Definition DTGrid3D.hpp:154