    

 ## On this page

  

 

 # test\_dvs\_reader

 Last update: 16.07.2025 

[Go to the documentation of this file.](test__dvs__reader_8cpp.xhtml)<a id="l00001" name="l00001"></a> 1 /\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

<a id="l00002" name="l00002"></a> 2 \*

<a id="l00003" name="l00003"></a> 3 \* (C) 2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a id="l00004" name="l00004"></a> 4 \*

<a id="l00005" name="l00005"></a> 5 \* Restricted Rights Legend

<a id="l00006" name="l00006"></a> 6 \*

<a id="l00007" name="l00007"></a> 7 \* Use, duplication, or disclosure of this

<a id="l00008" name="l00008"></a> 8 \* software and its documentation by the

<a id="l00009" name="l00009"></a> 9 \* Government is subject to restrictions as

<a id="l00010" name="l00010"></a> 10 \* set forth in subdivision \[(b)(3)(ii)\] of

<a id="l00011" name="l00011"></a> 11 \* the Rights in Technical Data and Computer

<a id="l00012" name="l00012"></a> 12 \* Software clause at 52.227-7013.

<a id="l00013" name="l00013"></a> 13 \*

<a id="l00014" name="l00014"></a> 14 \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

<a id="l00015" name="l00015"></a> 15 \*/

<a id="l00016" name="l00016"></a> 16 

<a id="l00024" name="l00024"></a> 24 \#include &lt;string.h&gt;

<a id="l00025" name="l00025"></a> 25 

<a id="l00026" name="l00026"></a> 26 \#include "[include/dvs\_query\_interface.h](dvs__query__interface_8h.xhtml)"

<a id="l00027" name="l00027"></a> 27 \#include "[logger\_verbose.h](logger__verbose_8h.xhtml)"

<a id="l00028" name="l00028"></a> 28 

<a id="l00029" name="l00029"></a> 29 \#include &lt;array&gt;

<a id="l00030" name="l00030"></a> 30 \#include &lt;chrono&gt;

<a id="l00031" name="l00031"></a> 31 \#include &lt;functional&gt;

<a id="l00032" name="l00032"></a> 32 \#include &lt;memory&gt;

<a id="l00033" name="l00033"></a> 33 \#include &lt;string&gt;

<a id="l00034" name="l00034"></a> 34 \#include &lt;thread&gt;

<a id="l00035" name="l00035"></a> 35 \#include &lt;vector&gt;

<a id="l00036" name="l00036"></a> 36 \#include &lt;cfloat&gt;

<a id="l00037" name="l00037"></a> 37 

<a id="l00038" name="l00038"></a> 38 static void logging_function(void* user_data, const char* message)

<a id="l00039" name="l00039"></a> 39 {

<a id="l00040" name="l00040"></a> 40 fprintf(stdout, message);

<a id="l00041" name="l00041"></a> 41 }

<a id="l00042" name="l00042"></a> 42 

<a id="l00043" name="l00043"></a> 43 static void print(const [DVS::IObject](class_d_v_s_1_1_i_object.xhtml)* object)

<a id="l00044" name="l00044"></a> 44 {

<a id="l00045" name="l00045"></a> 45 if (object)

<a id="l00046" name="l00046"></a> 46 {

<a id="l00047" name="l00047"></a> 47 std::string object_name = "Unknown:";

<a id="l00048" name="l00048"></a> 48 if (object-&gt;[get\_type](class_d_v_s_1_1_i_object.xhtml#a889c46624013cc3802c7164d153b95f6)() == [DVS::IObject::PART](class_d_v_s_1_1_i_object.xhtml#aa897daa1f7d0467515fd108c29015348a8b2484e08a16329d2d91c18c254f5ca6)) {

<a id="l00049" name="l00049"></a> 49 object_name = "Part";

<a id="l00050" name="l00050"></a> 50 }

<a id="l00051" name="l00051"></a> 51 else if (object-&gt;[get\_type](class_d_v_s_1_1_i_object.xhtml#a889c46624013cc3802c7164d153b95f6)() == [DVS::IObject::PLOT](class_d_v_s_1_1_i_object.xhtml#aa897daa1f7d0467515fd108c29015348abe80fa1e67dae7efb56fdb2936914cae)) {

<a id="l00052" name="l00052"></a> 52 object_name = "Plot";

<a id="l00053" name="l00053"></a> 53 }

<a id="l00054" name="l00054"></a> 54 

<a id="l00055" name="l00055"></a> 55 fprintf( stdout, "%s: Name: %s Type: %i\\n", object_name.c_str(), object-&gt;[get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)(), object-&gt;[get\_type](class_d_v_s_1_1_i_object.xhtml#a889c46624013cc3802c7164d153b95f6)() );

<a id="l00056" name="l00056"></a> 56 fprintf( stdout, "Dataset Name: %s\\n", object-&gt;[get\_dataset](class_d_v_s_1_1_i_object.xhtml#a9184ca61b90cf245c5f596f52756001b)()-&gt;[get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)());

<a id="l00057" name="l00057"></a> 57 fprintf( stdout, "Metadata Size: %u\\n", object-&gt;[get\_num\_metadata](class_d_v_s_1_1_i_object.xhtml#a31db3b716cc815c2c73f826f24384f6a)());

<a id="l00058" name="l00058"></a> 58 if (object-&gt;[get\_num\_metadata](class_d_v_s_1_1_i_object.xhtml#a31db3b716cc815c2c73f826f24384f6a)()) {

<a id="l00059" name="l00059"></a> 59 for (uint32_t metadata_idx = 0; metadata_idx &lt; object-&gt;get_num_metadata(); metadata_idx++) {

<a id="l00060" name="l00060"></a> 60 fprintf(stdout, "Key: %s, Val:%s ", object-&gt;[get\_metadata\_key](class_d_v_s_1_1_i_object.xhtml#a76a8b0bf7b55678cba9bcdb7e19c9a7f)(metadata_idx), object-&gt;[get\_metadata\_value](class_d_v_s_1_1_i_object.xhtml#aa391aa339c696ddb5fe582eb59bb7197)(metadata_idx));

<a id="l00061" name="l00061"></a> 61 }

<a id="l00062" name="l00062"></a> 62 fprintf(stdout, "\\n");

<a id="l00063" name="l00063"></a> 63 }

<a id="l00064" name="l00064"></a> 64 fprintf(stdout, "\\n");

<a id="l00065" name="l00065"></a> 65 }

<a id="l00066" name="l00066"></a> 66 }

<a id="l00067" name="l00067"></a> 67 

<a id="l00068" name="l00068"></a> 68 static void print(const [DVS::IVar](class_d_v_s_1_1_i_var.xhtml)* var)

<a id="l00069" name="l00069"></a> 69 {

<a id="l00070" name="l00070"></a> 70 if (var)

<a id="l00071" name="l00071"></a> 71 {

<a id="l00072" name="l00072"></a> 72 fprintf( stdout, "Var: Name: %s, Type: %i, Location: %i, Unit Dim: %s, Unit Label: %s\\n",

<a id="l00073" name="l00073"></a> 73 var-&gt;[get\_name](class_d_v_s_1_1_i_var.xhtml#af9d82173f26ea832cd2d9dcc9742bd56)(), var-&gt;[get\_var\_type](class_d_v_s_1_1_i_var.xhtml#ae837af2ee946d8f54695d1abf95c5cda)(), var-&gt;[get\_var\_location](class_d_v_s_1_1_i_var.xhtml#a7e97f43d3d1057267399c0e66deadd3d)(), var-&gt;[get\_unit\_dimension](class_d_v_s_1_1_i_var.xhtml#ab5a4abf4b5a1d319f4cd3651f03df6b3)(), var-&gt;[get\_unit\_label](class_d_v_s_1_1_i_var.xhtml#a4d5cad1da5b03c0a35d199de4c00799b)());

<a id="l00074" name="l00074"></a> 74 fprintf(stdout, "Dataset Name: %s\\n", var-&gt;[get\_dataset](class_d_v_s_1_1_i_var.xhtml#a2e0600d91a89b39455ca1386998851c3)()-&gt;[get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)());

<a id="l00075" name="l00075"></a> 75 fprintf( stdout, "Metadata Size: %u\\n", var-&gt;[get\_num\_metadata](class_d_v_s_1_1_i_var.xhtml#a2deab60f72955106a4a4a3f67a0f295e)());

<a id="l00076" name="l00076"></a> 76 if (var-&gt;[get\_num\_metadata](class_d_v_s_1_1_i_var.xhtml#a2deab60f72955106a4a4a3f67a0f295e)()) {

<a id="l00077" name="l00077"></a> 77 for (uint32_t metadata_idx = 0; metadata_idx &lt; var-&gt;[get\_num\_metadata](class_d_v_s_1_1_i_var.xhtml#a2deab60f72955106a4a4a3f67a0f295e)(); metadata_idx++) {

<a id="l00078" name="l00078"></a> 78 fprintf(stdout, "Key: %s, Val:%s ", var-&gt;[get\_metadata\_key](class_d_v_s_1_1_i_var.xhtml#a2b96533361edb6e64c7a4eb4a80d39f3)(metadata_idx), var-&gt;[get\_metadata\_value](class_d_v_s_1_1_i_var.xhtml#a970de1a0e394ebc738e503f072c6fc1b)(metadata_idx));

<a id="l00079" name="l00079"></a> 79 }

<a id="l00080" name="l00080"></a> 80 fprintf(stdout, "\\n");

<a id="l00081" name="l00081"></a> 81 }

<a id="l00082" name="l00082"></a> 82 fprintf(stdout, "\\n");

<a id="l00083" name="l00083"></a> 83 }

<a id="l00084" name="l00084"></a> 84 }

<a id="l00085" name="l00085"></a> 85 

<a id="l00093" name="l00093"></a>[ 93](test__dvs__reader_8cpp.xhtml#a3c04138a5bfe5d72780bb7e82a18e627) int [main](test__dvs__reader_8cpp.xhtml#a3c04138a5bfe5d72780bb7e82a18e627)(int argc, char** argv)

<a id="l00094" name="l00094"></a> 94 {

<a id="l00095" name="l00095"></a> 95 char cache_uri[512] = {0};

<a id="l00096" name="l00096"></a> 96 uint32_t debug_wait = 0;

<a id="l00097" name="l00097"></a> 97 bool all_coords = false;

<a id="l00098" name="l00098"></a> 98 bool all_connectivity = false;

<a id="l00099" name="l00099"></a> 99 bool all_variable_data = false;

<a id="l00100" name="l00100"></a> 100 

<a id="l00101" name="l00101"></a> 101 uint32_t i = 1;

<a id="l00102" name="l00102"></a> 102 while (i &lt; argc)

<a id="l00103" name="l00103"></a> 103 {

<a id="l00104" name="l00104"></a> 104 if ((strcmp(argv[i], "-cache\_uri") == 0) &amp;&amp; (i &lt; argc - 1))

<a id="l00105" name="l00105"></a> 105 {

<a id="l00106" name="l00106"></a> 106 i++;

<a id="l00107" name="l00107"></a> 107 strncpy(cache_uri, argv[i], 512);

<a id="l00108" name="l00108"></a> 108 }

<a id="l00109" name="l00109"></a> 109 else if ((strcmp(argv[i], "-all\_coords") == 0))

<a id="l00110" name="l00110"></a> 110 {

<a id="l00111" name="l00111"></a> 111 all_coords = true;

<a id="l00112" name="l00112"></a> 112 }

<a id="l00113" name="l00113"></a> 113 else if ((strcmp(argv[i], "-all\_conn") == 0))

<a id="l00114" name="l00114"></a> 114 {

<a id="l00115" name="l00115"></a> 115 all_connectivity = true;

<a id="l00116" name="l00116"></a> 116 }

<a id="l00117" name="l00117"></a> 117 else if ((strcmp(argv[i], "-all\_vars") == 0))

<a id="l00118" name="l00118"></a> 118 {

<a id="l00119" name="l00119"></a> 119 all_variable_data = true;

<a id="l00120" name="l00120"></a> 120 }

<a id="l00121" name="l00121"></a> 121 else if ((strcmp(argv[i], "-debug\_wait") == 0) &amp;&amp; (i &lt; argc - 1))

<a id="l00122" name="l00122"></a> 122 {

<a id="l00123" name="l00123"></a> 123 i++;

<a id="l00124" name="l00124"></a> 124 debug_wait = atoi(argv[i]);

<a id="l00125" name="l00125"></a> 125 }

<a id="l00126" name="l00126"></a> 126 else

<a id="l00127" name="l00127"></a> 127 {

<a id="l00128" name="l00128"></a> 128 fprintf(stderr, "Unknown option: %s\\n", argv[i]);

<a id="l00129" name="l00129"></a> 129 fprintf(stderr, "Usage: %s \[-uri str\] \[-debug\_wait ms\] \\n", argv[0]);

<a id="l00130" name="l00130"></a> 130 fprintf(stderr, "Options:\\n");

<a id="l00131" name="l00131"></a> 131 fprintf(stderr, " -cache\_uri str The URI for the reader to use for the cache. Default: No cache\\n");

<a id="l00132" name="l00132"></a> 132 fprintf(stderr, " -all\_coords Print the full coordinates for the mesh chunks iterated over (not a good idea for large datasets)\\n");

<a id="l00133" name="l00133"></a> 133 fprintf(stderr, " -all\_conn Print the full connectivity for the element blocks iterated over (not a good idea for large datasets)\\n");

<a id="l00134" name="l00134"></a> 134 fprintf(stderr, " -all\_vars Print the full variable values for mesh chunks and element blocks (not a good idea for large datasets)\\n");

<a id="l00135" name="l00135"></a> 135 fprintf(stderr, " -debug\_wait s Wait for \[s\] for debugging\\n");

<a id="l00136" name="l00136"></a> 136 exit(1);

<a id="l00137" name="l00137"></a> 137 }

<a id="l00138" name="l00138"></a> 138 i++;

<a id="l00139" name="l00139"></a> 139 }

<a id="l00140" name="l00140"></a> 140 

<a id="l00141" name="l00141"></a> 141 if (debug_wait &gt; 0) {

<a id="l00142" name="l00142"></a> 142 std::this_thread::sleep_for(std::chrono::seconds(debug_wait));

<a id="l00143" name="l00143"></a> 143 }

<a id="l00144" name="l00144"></a> 144 

<a id="l00145" name="l00145"></a> 145 std::unique_ptr&lt;[DVS::IQuery](class_d_v_s_1_1_i_query.xhtml), std::function&lt;void([DVS::IQuery](class_d_v_s_1_1_i_query.xhtml)*)&gt;&gt; dataset_query(DVS::CREATE_QUERY_INSTANCE(),

<a id="l00146" name="l00146"></a> 146 []([DVS::IQuery](class_d_v_s_1_1_i_query.xhtml)* p){p-&gt;[release](class_d_v_s_1_1_i_query.xhtml#a257f79d7de21658c07dc602dfa6bbf34)();});

<a id="l00147" name="l00147"></a> 147 dataset_query-&gt;[set\_logger](class_d_v_s_1_1_i_query.xhtml#ab6ce54c68281ea1676af650ebc5716a0)(new [DVS::LoggerVerbose](class_d_v_s_1_1_logger_verbose.xhtml)(nullptr, [dvs\_verbosity::DVS\_VERBOSE](dynamic__visualization__store__enums_8h.xhtml#aafcfd80cd55c92c53106bb56fdaf026da95f57c1525070266247b1a687f565f5b), &amp;logging_function));

<a id="l00148" name="l00148"></a> 148 auto err = dataset_query-&gt;add_uri(cache_uri);

<a id="l00149" name="l00149"></a> 149 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00150" name="l00150"></a> 150 return err;

<a id="l00151" name="l00151"></a> 151 }

<a id="l00152" name="l00152"></a> 152 

<a id="l00153" name="l00153"></a> 153 fprintf(stdout, "---------------------------\\n");

<a id="l00154" name="l00154"></a> 154 fprintf(stdout, "Listing All Timesteps for Query\\n");

<a id="l00155" name="l00155"></a> 155 fprintf(stdout, "---------------------------\\n");

<a id="l00156" name="l00156"></a> 156 uint32_t num_timesteps = 0;

<a id="l00157" name="l00157"></a> 157 err = dataset_query-&gt;get_num_timesteps(num_timesteps);

<a id="l00158" name="l00158"></a> 158 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00159" name="l00159"></a> 159 fprintf(stdout, "Error getting number of timesteps\\n");

<a id="l00160" name="l00160"></a> 160 return err;

<a id="l00161" name="l00161"></a> 161 }

<a id="l00162" name="l00162"></a> 162 std::vector&lt;float&gt; timesteps(num_timesteps, 0.f);

<a id="l00163" name="l00163"></a> 163 dataset_query-&gt;get_timesteps(timesteps.data());

<a id="l00164" name="l00164"></a> 164 

<a id="l00165" name="l00165"></a> 165 fprintf(stdout, "Timesteps: ");

<a id="l00166" name="l00166"></a> 166 for (auto time : timesteps) {

<a id="l00167" name="l00167"></a> 167 fprintf (stdout, " %f", time);

<a id="l00168" name="l00168"></a> 168 }

<a id="l00169" name="l00169"></a> 169 fprintf(stdout, "\\n");

<a id="l00170" name="l00170"></a> 170 

<a id="l00171" name="l00171"></a> 171 fprintf(stdout, "---------------------------\\n");

<a id="l00172" name="l00172"></a> 172 fprintf(stdout, "Listing All Ranks for Query\\n");

<a id="l00173" name="l00173"></a> 173 fprintf(stdout, "---------------------------\\n");

<a id="l00174" name="l00174"></a> 174 uint32_t num_ranks = 0;

<a id="l00175" name="l00175"></a> 175 err = dataset_query-&gt;get_num_ranks(num_ranks);

<a id="l00176" name="l00176"></a> 176 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00177" name="l00177"></a> 177 fprintf(stdout, "Error getting number of ranks\\n");

<a id="l00178" name="l00178"></a> 178 return err;

<a id="l00179" name="l00179"></a> 179 }

<a id="l00180" name="l00180"></a> 180 std::vector&lt;uint32_t&gt; global_ranks(num_ranks, 0);

<a id="l00181" name="l00181"></a> 181 dataset_query-&gt;get_ranks(global_ranks.data());

<a id="l00182" name="l00182"></a> 182 for (auto rank : global_ranks) {

<a id="l00183" name="l00183"></a> 183 fprintf(stdout, "%u ", rank);

<a id="l00184" name="l00184"></a> 184 }

<a id="l00185" name="l00185"></a> 185 fprintf(stdout, "\\n");

<a id="l00186" name="l00186"></a> 186 

<a id="l00187" name="l00187"></a> 187 fprintf(stdout, "---------------------------\\n");

<a id="l00188" name="l00188"></a> 188 fprintf(stdout, "Listing Max Chunks for Query\\n");

<a id="l00189" name="l00189"></a> 189 fprintf(stdout, "---------------------------\\n");

<a id="l00190" name="l00190"></a> 190 

<a id="l00191" name="l00191"></a> 191 uint32_t num_chunks_per_rank = 0;

<a id="l00192" name="l00192"></a> 192 err = dataset_query-&gt;get_num_chunks_per_rank(num_chunks_per_rank);

<a id="l00193" name="l00193"></a> 193 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00194" name="l00194"></a> 194 fprintf(stdout, "Error getting number of chunks per rank\\n");

<a id="l00195" name="l00195"></a> 195 return err;

<a id="l00196" name="l00196"></a> 196 }

<a id="l00197" name="l00197"></a> 197 std::vector&lt;uint32_t&gt; global_chunk_max(num_chunks_per_rank, 0);

<a id="l00198" name="l00198"></a> 198 dataset_query-&gt;get_chunks_per_rank(global_chunk_max.data());

<a id="l00199" name="l00199"></a> 199 for (auto chunk : global_chunk_max) {

<a id="l00200" name="l00200"></a> 200 fprintf(stdout, "%u ", chunk);

<a id="l00201" name="l00201"></a> 201 }

<a id="l00202" name="l00202"></a> 202 fprintf(stdout, "\\n");

<a id="l00203" name="l00203"></a> 203 

<a id="l00204" name="l00204"></a> 204 fprintf(stdout, "---------------------------\\n");

<a id="l00205" name="l00205"></a> 205 fprintf(stdout, "Listing All Parts for Query\\n");

<a id="l00206" name="l00206"></a> 206 fprintf(stdout, "---------------------------\\n");

<a id="l00207" name="l00207"></a> 207 uint32_t num_parts = 0;

<a id="l00208" name="l00208"></a> 208 err = dataset_query-&gt;get_num_parts(num_parts);

<a id="l00209" name="l00209"></a> 209 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00210" name="l00210"></a> 210 fprintf(stdout, "Error getting number of parts\\n");

<a id="l00211" name="l00211"></a> 211 return err;

<a id="l00212" name="l00212"></a> 212 }

<a id="l00213" name="l00213"></a> 213 for (uint32_t part_index = 0; part_index &lt; num_parts; part_index++)

<a id="l00214" name="l00214"></a> 214 {

<a id="l00215" name="l00215"></a> 215 auto part = dataset_query-&gt;get_part(part_index);

<a id="l00216" name="l00216"></a> 216 if (!part) continue;

<a id="l00217" name="l00217"></a> 217 print(part);

<a id="l00218" name="l00218"></a> 218 }

<a id="l00219" name="l00219"></a> 219 fprintf(stdout, "---------------------------\\n");

<a id="l00220" name="l00220"></a> 220 fprintf(stdout, "Listing All Plots for Query\\n");

<a id="l00221" name="l00221"></a> 221 fprintf(stdout, "---------------------------\\n");

<a id="l00222" name="l00222"></a> 222 uint32_t num_plots = 0;

<a id="l00223" name="l00223"></a> 223 err = dataset_query-&gt;get_num_plots(num_plots);

<a id="l00224" name="l00224"></a> 224 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00225" name="l00225"></a> 225 fprintf(stdout, "Error getting number of plots\\n");

<a id="l00226" name="l00226"></a> 226 return err;

<a id="l00227" name="l00227"></a> 227 }

<a id="l00228" name="l00228"></a> 228 for (uint32_t plot_index = 0; plot_index &lt; num_plots; plot_index++)

<a id="l00229" name="l00229"></a> 229 {

<a id="l00230" name="l00230"></a> 230 auto plot = dataset_query-&gt;get_plot(plot_index);

<a id="l00231" name="l00231"></a> 231 if (!plot) continue;

<a id="l00232" name="l00232"></a> 232 print(plot);

<a id="l00233" name="l00233"></a> 233 }

<a id="l00234" name="l00234"></a> 234 fprintf(stdout, "---------------------------\\n");

<a id="l00235" name="l00235"></a> 235 fprintf(stdout, "Listing All Vars for Query\\n");

<a id="l00236" name="l00236"></a> 236 fprintf(stdout, "---------------------------\\n");

<a id="l00237" name="l00237"></a> 237 uint32_t num_vars = 0;

<a id="l00238" name="l00238"></a> 238 err = dataset_query-&gt;get_num_variables(num_vars);

<a id="l00239" name="l00239"></a> 239 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00240" name="l00240"></a> 240 fprintf(stdout, "Error getting number of vars\\n");

<a id="l00241" name="l00241"></a> 241 return err;

<a id="l00242" name="l00242"></a> 242 }

<a id="l00243" name="l00243"></a> 243 for (uint32_t var_index = 0; var_index &lt; num_vars; var_index++)

<a id="l00244" name="l00244"></a> 244 {

<a id="l00245" name="l00245"></a> 245 auto var = dataset_query-&gt;get_variable(var_index);

<a id="l00246" name="l00246"></a> 246 if (!var) continue;

<a id="l00247" name="l00247"></a> 247 print(var);

<a id="l00248" name="l00248"></a> 248 }

<a id="l00249" name="l00249"></a> 249 fprintf(stdout, "---------------------------\\n");

<a id="l00250" name="l00250"></a> 250 fprintf(stdout, "Listing All Case Variables for Query\\n\\n");

<a id="l00251" name="l00251"></a> 251 num_vars = 0;

<a id="l00252" name="l00252"></a> 252 err = dataset_query-&gt;get_num_variables(num_vars);

<a id="l00253" name="l00253"></a> 253 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00254" name="l00254"></a> 254 fprintf(stdout, "Error getting number of vars for case vars\\n");

<a id="l00255" name="l00255"></a> 255 return err;

<a id="l00256" name="l00256"></a> 256 }

<a id="l00257" name="l00257"></a> 257 for (uint32_t var_index = 0; var_index &lt; num_vars; var_index++)

<a id="l00258" name="l00258"></a> 258 {

<a id="l00259" name="l00259"></a> 259 auto var = dataset_query-&gt;get_variable(var_index);

<a id="l00260" name="l00260"></a> 260 if (var &amp;&amp; var-&gt;[get\_var\_location](class_d_v_s_1_1_i_var.xhtml#a7e97f43d3d1057267399c0e66deadd3d)() == [dvs\_var\_location::CASE](dynamic__visualization__store__enums_8h.xhtml#af4f0eba512eff253854b44d7ce078491a9c9b14644e9370719a51b7342bbc9c4d)) {

<a id="l00261" name="l00261"></a> 261 const [DVS::IDataset](class_d_v_s_1_1_i_dataset.xhtml)* dataset = var-&gt;[get\_dataset](class_d_v_s_1_1_i_var.xhtml#a2e0600d91a89b39455ca1386998851c3)();

<a id="l00262" name="l00262"></a> 262 std::vector&lt;float&gt; var_value(var-&gt;[get\_float\_count\_per\_value](class_d_v_s_1_1_i_var.xhtml#a9dbdd84e6f6342deae82ede6dcf2156e)());

<a id="l00263" name="l00263"></a> 263 for (float timestep : timesteps) {

<a id="l00264" name="l00264"></a> 264 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == dataset_query-&gt;get_variable_data(dataset, var, timestep, var_value.data())) {

<a id="l00265" name="l00265"></a> 265 //Only scalars are supported for case/part variables right now so we

<a id="l00266" name="l00266"></a> 266 //can just look at the first value

<a id="l00267" name="l00267"></a> 267 fprintf(stdout, "Dataset: %s, Var: %s, Time: %f, Value: %f\\n",

<a id="l00268" name="l00268"></a> 268 dataset-&gt;[get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)(), var-&gt;[get\_name](class_d_v_s_1_1_i_var.xhtml#af9d82173f26ea832cd2d9dcc9742bd56)(), timestep, var_value[0]);

<a id="l00269" name="l00269"></a> 269 }

<a id="l00270" name="l00270"></a> 270 else {

<a id="l00271" name="l00271"></a> 271 fprintf(stdout, "Dataset: %s, Var: %s, Time: %f, No Value Found\\n",

<a id="l00272" name="l00272"></a> 272 dataset-&gt;[get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)(), var-&gt;[get\_name](class_d_v_s_1_1_i_var.xhtml#af9d82173f26ea832cd2d9dcc9742bd56)(), timestep);

<a id="l00273" name="l00273"></a> 273 }

<a id="l00274" name="l00274"></a> 274 }

<a id="l00275" name="l00275"></a> 275 }

<a id="l00276" name="l00276"></a> 276 }

<a id="l00277" name="l00277"></a> 277 fprintf(stdout, "---------------------------\\n");

<a id="l00278" name="l00278"></a> 278 fprintf(stdout, "Listing All Part Variables for Query\\n\\n");

<a id="l00279" name="l00279"></a> 279 num_vars = 0;

<a id="l00280" name="l00280"></a> 280 err = dataset_query-&gt;get_num_variables(num_vars);

<a id="l00281" name="l00281"></a> 281 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00282" name="l00282"></a> 282 fprintf(stdout, "Error getting number of vars for part vars\\n");

<a id="l00283" name="l00283"></a> 283 return err;

<a id="l00284" name="l00284"></a> 284 }

<a id="l00285" name="l00285"></a> 285 for (uint32_t var_index = 0; var_index &lt; num_vars; var_index++)

<a id="l00286" name="l00286"></a> 286 {

<a id="l00287" name="l00287"></a> 287 auto var = dataset_query-&gt;get_variable(var_index);

<a id="l00288" name="l00288"></a> 288 if (var &amp;&amp; var-&gt;[get\_var\_location](class_d_v_s_1_1_i_var.xhtml#a7e97f43d3d1057267399c0e66deadd3d)() == [dvs\_var\_location::PART](dynamic__visualization__store__enums_8h.xhtml#af4f0eba512eff253854b44d7ce078491a173f98c603042f6241b70157d56e385f)) {

<a id="l00289" name="l00289"></a> 289 auto dataset = var-&gt;[get\_dataset](class_d_v_s_1_1_i_var.xhtml#a2e0600d91a89b39455ca1386998851c3)();

<a id="l00290" name="l00290"></a> 290 std::vector&lt;float&gt; var_value(var-&gt;[get\_float\_count\_per\_value](class_d_v_s_1_1_i_var.xhtml#a9dbdd84e6f6342deae82ede6dcf2156e)());

<a id="l00291" name="l00291"></a> 291 for (float timestep : timesteps) {

<a id="l00292" name="l00292"></a> 292 for (uint32_t part_index = 0; part_index &lt; dataset-&gt;get_num_parts(); part_index++) {

<a id="l00293" name="l00293"></a> 293 const [DVS::IObject](class_d_v_s_1_1_i_object.xhtml)* part = dataset-&gt;get_part(part_index);

<a id="l00294" name="l00294"></a> 294 if (!part) {

<a id="l00295" name="l00295"></a> 295 continue;

<a id="l00296" name="l00296"></a> 296 }

<a id="l00297" name="l00297"></a> 297 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == dataset_query-&gt;get_variable_data(part, var, timestep, var_value.data())) {

<a id="l00298" name="l00298"></a> 298 //Only scalars are supported for case/part variables right now so we

<a id="l00299" name="l00299"></a> 299 //can just look at the first value

<a id="l00300" name="l00300"></a> 300 fprintf(stdout, "Dataset: %s, Part: %s, Var: %s, Time: %f, Value: %f\\n",

<a id="l00301" name="l00301"></a> 301 dataset-&gt;get_name(), part-&gt;[get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)(), var-&gt;[get\_name](class_d_v_s_1_1_i_var.xhtml#af9d82173f26ea832cd2d9dcc9742bd56)(), timestep, var_value[0]);

<a id="l00302" name="l00302"></a> 302 }

<a id="l00303" name="l00303"></a> 303 else {

<a id="l00304" name="l00304"></a> 304 fprintf(stdout, "Dataset: %s, Part: %s, Var: %s, Time: %f, No Value Found\\n",

<a id="l00305" name="l00305"></a> 305 dataset-&gt;get_name(), part-&gt;[get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)(), var-&gt;[get\_name](class_d_v_s_1_1_i_var.xhtml#af9d82173f26ea832cd2d9dcc9742bd56)(), timestep);

<a id="l00306" name="l00306"></a> 306 }

<a id="l00307" name="l00307"></a> 307 }

<a id="l00308" name="l00308"></a> 308 }

<a id="l00309" name="l00309"></a> 309 }

<a id="l00310" name="l00310"></a> 310 }

<a id="l00311" name="l00311"></a> 311 fprintf(stdout, "---------------------------\\n");

<a id="l00312" name="l00312"></a> 312 fprintf(stdout, "Listing All Datasets for Query\\n");

<a id="l00313" name="l00313"></a> 313 uint32_t num_datasets = 0;

<a id="l00314" name="l00314"></a> 314 err = dataset_query-&gt;get_num_datasets(num_datasets);

<a id="l00315" name="l00315"></a> 315 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00316" name="l00316"></a> 316 fprintf (stdout, "Error getting number of datasets\\n");

<a id="l00317" name="l00317"></a> 317 return err;

<a id="l00318" name="l00318"></a> 318 }

<a id="l00319" name="l00319"></a> 319 for (uint32_t dataset_idx = 0; dataset_idx &lt; num_datasets; dataset_idx++)

<a id="l00320" name="l00320"></a> 320 {

<a id="l00321" name="l00321"></a> 321 [DVS::IDataset](class_d_v_s_1_1_i_dataset.xhtml)* dataset = dataset_query-&gt;[get\_dataset](class_d_v_s_1_1_i_object.xhtml#a9184ca61b90cf245c5f596f52756001b)(dataset_idx);

<a id="l00322" name="l00322"></a> 322 if (dataset)

<a id="l00323" name="l00323"></a> 323 {

<a id="l00324" name="l00324"></a> 324 fprintf(stdout, "---------------------------\\n");

<a id="l00325" name="l00325"></a> 325 fprintf(stdout, "Dataset: %s Units System: %s\\n",

<a id="l00326" name="l00326"></a> 326 dataset-&gt;[get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)(), dataset-&gt;[get\_unit\_system](class_d_v_s_1_1_i_dataset.xhtml#a58184590f98127577ba91292064ccb75)() );

<a id="l00327" name="l00327"></a> 327 for (uint32_t cur_pair = 0; cur_pair &lt; dataset-&gt;[get\_num\_metadata](class_d_v_s_1_1_i_object.xhtml#a31db3b716cc815c2c73f826f24384f6a)(); cur_pair++) {

<a id="l00328" name="l00328"></a> 328 fprintf(stdout, "Key: %s, Val: %s\\n", dataset-&gt;[get\_metadata\_key](class_d_v_s_1_1_i_object.xhtml#a76a8b0bf7b55678cba9bcdb7e19c9a7f)(cur_pair), dataset-&gt;[get\_metadata\_value](class_d_v_s_1_1_i_object.xhtml#aa391aa339c696ddb5fe582eb59bb7197)(cur_pair));

<a id="l00329" name="l00329"></a> 329 }

<a id="l00330" name="l00330"></a> 330 fprintf(stdout, "\\n");

<a id="l00331" name="l00331"></a> 331 

<a id="l00332" name="l00332"></a> 332 std::vector&lt;uint32_t&gt; ranks(dataset-&gt;[get\_num\_ranks](class_d_v_s_1_1_i_dataset.xhtml#a423774f63a6f5275d4d4f33da65f37b4)(), 0);

<a id="l00333" name="l00333"></a> 333 dataset-&gt;[get\_ranks](class_d_v_s_1_1_i_dataset.xhtml#ac620a1f5fb513d636ed59d7b4552197a)(ranks.data());

<a id="l00334" name="l00334"></a> 334 

<a id="l00335" name="l00335"></a> 335 fprintf(stdout, "Ranks: ");

<a id="l00336" name="l00336"></a> 336 for (auto rank : ranks) {

<a id="l00337" name="l00337"></a> 337 fprintf(stdout, " %u", rank);

<a id="l00338" name="l00338"></a> 338 }

<a id="l00339" name="l00339"></a> 339 fprintf(stdout, "\\n");

<a id="l00340" name="l00340"></a> 340 

<a id="l00341" name="l00341"></a> 341 std::vector&lt;uint32_t&gt; chunks(dataset-&gt;[get\_num\_chunks\_per\_rank](class_d_v_s_1_1_i_dataset.xhtml#a5ec19061a478d6b2aea0976b9e79f73b)(), 0);

<a id="l00342" name="l00342"></a> 342 dataset-&gt;[get\_chunks\_per\_rank](class_d_v_s_1_1_i_dataset.xhtml#afb023f6b10fd4c072e8c7cb140d666ae)(chunks.data());

<a id="l00343" name="l00343"></a> 343 fprintf(stdout, "Chunks: ");

<a id="l00344" name="l00344"></a> 344 for (auto chunk : chunks) {

<a id="l00345" name="l00345"></a> 345 fprintf(stdout, " %u", chunk);

<a id="l00346" name="l00346"></a> 346 }

<a id="l00347" name="l00347"></a> 347 fprintf(stdout, "\\n");

<a id="l00348" name="l00348"></a> 348 

<a id="l00349" name="l00349"></a> 349 for (uint32_t part_idx = 0; part_idx &lt; dataset-&gt;[get\_num\_parts](class_d_v_s_1_1_i_dataset.xhtml#a69aa8f4d0ad2c4fd69e6443f662fbc1d)(); part_idx++) {

<a id="l00350" name="l00350"></a> 350 const [DVS::IObject](class_d_v_s_1_1_i_object.xhtml)* part = dataset-&gt;[get\_part](class_d_v_s_1_1_i_dataset.xhtml#ab71be7a6ec20c74eeccc625055bc0fb2)(part_idx);

<a id="l00351" name="l00351"></a> 351 if (!part) continue;

<a id="l00352" name="l00352"></a> 352 print(part);

<a id="l00353" name="l00353"></a> 353 }

<a id="l00354" name="l00354"></a> 354 

<a id="l00355" name="l00355"></a> 355 for (uint32_t plot_idx = 0; plot_idx &lt; dataset-&gt;[get\_num\_plots](class_d_v_s_1_1_i_dataset.xhtml#a49e3b27865d865ba36dd5d7e5c659a6b)(); plot_idx++) {

<a id="l00356" name="l00356"></a> 356 const [DVS::IObject](class_d_v_s_1_1_i_object.xhtml)* plot = dataset-&gt;[get\_plot](class_d_v_s_1_1_i_dataset.xhtml#a465ce7d87c7291ce115b0b8d2b848703)(plot_idx);

<a id="l00357" name="l00357"></a> 357 if (!plot) continue;

<a id="l00358" name="l00358"></a> 358 print(plot);

<a id="l00359" name="l00359"></a> 359 }

<a id="l00360" name="l00360"></a> 360 

<a id="l00361" name="l00361"></a> 361 for (uint32_t var_idx = 0; var_idx &lt; dataset-&gt;[get\_num\_variables](class_d_v_s_1_1_i_dataset.xhtml#acd0c0e81b283bce8044d9b4de796574a)(); var_idx++) {

<a id="l00362" name="l00362"></a> 362 const [DVS::IVar](class_d_v_s_1_1_i_var.xhtml)* var = dataset-&gt;[get\_var](class_d_v_s_1_1_i_dataset.xhtml#a52dd0a5187d92908761ddfae07a47273)(var_idx);

<a id="l00363" name="l00363"></a> 363 if (!var) continue;

<a id="l00364" name="l00364"></a> 364 print(var);

<a id="l00365" name="l00365"></a> 365 }

<a id="l00366" name="l00366"></a> 366 }

<a id="l00367" name="l00367"></a> 367 }

<a id="l00368" name="l00368"></a> 368 

<a id="l00369" name="l00369"></a> 369 fprintf(stdout, "---------------------------\\n");

<a id="l00370" name="l00370"></a> 370 fprintf(stdout, "Listing All Mesh Chunks for Query\\n");

<a id="l00371" name="l00371"></a> 371 fprintf(stdout, "---------------------------\\n");

<a id="l00372" name="l00372"></a> 372 uint32_t num_mesh_chunks = 0;

<a id="l00373" name="l00373"></a> 373 err = dataset_query-&gt;get_num_mesh_chunks(num_mesh_chunks);

<a id="l00374" name="l00374"></a> 374 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00375" name="l00375"></a> 375 fprintf(stdout, "Error getting number of mesh chunks\\n");

<a id="l00376" name="l00376"></a> 376 return err;

<a id="l00377" name="l00377"></a> 377 }

<a id="l00378" name="l00378"></a> 378 for (uint32_t index = 0; index &lt; num_mesh_chunks; index++) {

<a id="l00379" name="l00379"></a> 379 [DVS::IMeshChunk](class_d_v_s_1_1_i_mesh_chunk.xhtml)* mesh_chunk = dataset_query-&gt;get_mesh_chunk(index);

<a id="l00380" name="l00380"></a> 380 if (mesh_chunk) {

<a id="l00381" name="l00381"></a> 381 [DVS::IMeshChunk::MeshType](class_d_v_s_1_1_i_mesh_chunk.xhtml#a8b7de1a1e47e05ab63f6bb41ccf5144a) type = mesh_chunk-&gt;[get\_type](class_d_v_s_1_1_i_mesh_chunk.xhtml#ab025d1550b2b3cd77faefecec5199852)();

<a id="l00382" name="l00382"></a> 382 const [DVS::IObject](class_d_v_s_1_1_i_object.xhtml)* part = mesh_chunk-&gt;[get\_object](class_d_v_s_1_1_i_mesh_chunk.xhtml#ae4ff384a5739e480c88097bef524d4bd)();

<a id="l00383" name="l00383"></a> 383 float time = mesh_chunk-&gt;[get\_time](class_d_v_s_1_1_i_mesh_chunk.xhtml#a32ad562394805327fbabffa322643701)();

<a id="l00384" name="l00384"></a> 384 uint32_t rank = mesh_chunk-&gt;[get\_rank](class_d_v_s_1_1_i_mesh_chunk.xhtml#a6c520674083999e99bdf77b2b1eaacf8)();

<a id="l00385" name="l00385"></a> 385 uint32_t chunk = mesh_chunk-&gt;[get\_chunk](class_d_v_s_1_1_i_mesh_chunk.xhtml#a6b894c57bfd1e70168290ce69ecc5af4)();

<a id="l00386" name="l00386"></a> 386 

<a id="l00387" name="l00387"></a> 387 std::string coords_hash(mesh_chunk-&gt;[get\_hash\_size](class_d_v_s_1_1_i_hash.xhtml#ac0dedeb8d9dfd442d49d16cb4ddfb221)(), 0);

<a id="l00388" name="l00388"></a> 388 if (coords_hash.empty() || [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != mesh_chunk-&gt;[get\_hash](class_d_v_s_1_1_i_hash.xhtml#a51eaee86a6e2db4dda7f4326daa33874)(&amp;(coords_hash[0]))) {

<a id="l00389" name="l00389"></a> 389 fprintf(stdout, "ERROR: Could not load coordinates hash\\n");

<a id="l00390" name="l00390"></a> 390 }

<a id="l00391" name="l00391"></a> 391 

<a id="l00392" name="l00392"></a> 392 fprintf(stdout, "Mesh Chunk %u Type: %i Part: %s Rank: %u Chunk: %u Time: %f Hash: %s\\n",

<a id="l00393" name="l00393"></a> 393 index, type, part-&gt;[get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)(), rank, chunk, time, coords_hash.c_str());

<a id="l00394" name="l00394"></a> 394 

<a id="l00395" name="l00395"></a> 395 std::array&lt;uint32_t,3&gt; num_coords;

<a id="l00396" name="l00396"></a> 396 

<a id="l00397" name="l00397"></a> 397 [dvs\_ret](dynamic__visualization__store__error__codes_8h.xhtml#a1d7466ae72e89fe36cbf2408b4f7d9c1) coord_ret = [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7);

<a id="l00398" name="l00398"></a> 398 

<a id="l00399" name="l00399"></a> 399 if (type == DVS::IMeshChunk::MeshType::UNSTRUCTURED) {

<a id="l00400" name="l00400"></a> 400 coord_ret = mesh_chunk-&gt;[get\_coords\_size](class_d_v_s_1_1_i_mesh_chunk.xhtml#a0fe402e619754256a19e0087b76e2c53)(num_coords[0]);

<a id="l00401" name="l00401"></a> 401 //Coords of all axis match for unstructured

<a id="l00402" name="l00402"></a> 402 num_coords[1] = num_coords[2] = num_coords[0];

<a id="l00403" name="l00403"></a> 403 }

<a id="l00404" name="l00404"></a> 404 else if (type == [DVS::IMeshChunk::MeshType::CURVILINEAR](dynamic__visualization__store__enums_8h.xhtml#a72a02f8c046b459abfa438d402dbba52acd60e0b216d803cc36de999bfbd2547b)) {

<a id="l00405" name="l00405"></a> 405 coord_ret = mesh_chunk-&gt;[get\_coords\_curv\_size](class_d_v_s_1_1_i_mesh_chunk.xhtml#a70b1069fc8737730efa0fc01a0698fbd)(num_coords[0]);

<a id="l00406" name="l00406"></a> 406 //Coords of all axis match for curvilinear

<a id="l00407" name="l00407"></a> 407 num_coords[1] = num_coords[2] = num_coords[0];

<a id="l00408" name="l00408"></a> 408 }

<a id="l00409" name="l00409"></a> 409 else if (type == [DVS::IMeshChunk::MeshType::PARALLELEPIPED](dynamic__visualization__store__enums_8h.xhtml#a72a02f8c046b459abfa438d402dbba52a64849d874c1036d5e88f88e53706a76f)) {

<a id="l00410" name="l00410"></a> 410 coord_ret = mesh_chunk-&gt;[get\_coords\_parallele\_size](class_d_v_s_1_1_i_mesh_chunk.xhtml#abda21734e2f506b982b65007d17c92fd)(num_coords[0], num_coords[1], num_coords[2]);

<a id="l00411" name="l00411"></a> 411 }

<a id="l00412" name="l00412"></a> 412 if (coord_ret != [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7)) {

<a id="l00413" name="l00413"></a> 413 fprintf(stdout, "ERROR: %d Loading Coords Size\\n", coord_ret);

<a id="l00414" name="l00414"></a> 414 }

<a id="l00415" name="l00415"></a> 415 else {

<a id="l00416" name="l00416"></a> 416 fprintf(stdout, "Size of coords arrays: X(I): %d Y(J): %d Z(K): %d\\n", num_coords[0], num_coords[1], num_coords[2]);

<a id="l00417" name="l00417"></a> 417 }

<a id="l00418" name="l00418"></a> 418 if (coord_ret == [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) &amp;&amp; all_coords) {

<a id="l00419" name="l00419"></a> 419 

<a id="l00420" name="l00420"></a> 420 std::vector&lt;float&gt; x_coords(num_coords[0]);

<a id="l00421" name="l00421"></a> 421 std::vector&lt;float&gt; y_coords(num_coords[1]);

<a id="l00422" name="l00422"></a> 422 std::vector&lt;float&gt; z_coords(num_coords[2]);

<a id="l00423" name="l00423"></a> 423 

<a id="l00424" name="l00424"></a> 424 //The vars are for structured data if needed

<a id="l00425" name="l00425"></a> 425 std::array&lt;float,3&gt; origin;

<a id="l00426" name="l00426"></a> 426 std::array&lt;float,3&gt; dir_vec_i, dir_vec_j, dir_vec_k;

<a id="l00427" name="l00427"></a> 427 std::array&lt;float,3&gt; local_ijk_min, local_ijk_max, global_ijk_max;

<a id="l00428" name="l00428"></a> 428 

<a id="l00429" name="l00429"></a> 429 if (type == DVS::IMeshChunk::MeshType::UNSTRUCTURED) {

<a id="l00430" name="l00430"></a> 430 coord_ret = mesh_chunk-&gt;[get\_coords](class_d_v_s_1_1_i_mesh_chunk.xhtml#a7738e954570e849462ff493ec875bc80)(x_coords.data(), y_coords.data(), z_coords.data());

<a id="l00431" name="l00431"></a> 431 

<a id="l00432" name="l00432"></a> 432 //Validating the coords match if interleaved

<a id="l00433" name="l00433"></a> 433 std::vector&lt;float&gt; interleaved(num_coords[0]+num_coords[1]+num_coords[2]);

<a id="l00434" name="l00434"></a> 434 auto interleaved_ret = mesh_chunk-&gt;[get\_coords\_interleaved](class_d_v_s_1_1_i_mesh_chunk.xhtml#a39c2d8cc95f14ecbe9789908881c92a0)(interleaved.data());

<a id="l00435" name="l00435"></a> 435 if (coord_ret == [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) &amp;&amp; interleaved_ret == [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7)) {

<a id="l00436" name="l00436"></a> 436 bool good_values = x_coords[0] == interleaved[0];

<a id="l00437" name="l00437"></a> 437 good_values &amp;= y_coords[0] == interleaved[1];

<a id="l00438" name="l00438"></a> 438 good_values &amp;= z_coords[0] == interleaved[2];

<a id="l00439" name="l00439"></a> 439 for (uint32_t i = 1; i &lt; num_coords[0] &amp;&amp; good_values; i++) {

<a id="l00440" name="l00440"></a> 440 good_values &amp;= x_coords[i] == interleaved[i*3];

<a id="l00441" name="l00441"></a> 441 good_values &amp;= y_coords[i] == interleaved[i*3+1];

<a id="l00442" name="l00442"></a> 442 good_values &amp;= z_coords[i] == interleaved[i*3+2];

<a id="l00443" name="l00443"></a> 443 }

<a id="l00444" name="l00444"></a> 444 if (!good_values) {

<a id="l00445" name="l00445"></a> 445 fprintf(stdout, "ERROR: Interleaved coords don't match non-interleaved\\n");

<a id="l00446" name="l00446"></a> 446 }

<a id="l00447" name="l00447"></a> 447 }

<a id="l00448" name="l00448"></a> 448 else if (interleaved_ret != [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7)) {

<a id="l00449" name="l00449"></a> 449 //Error message for coord\_ret handled later

<a id="l00450" name="l00450"></a> 450 fprintf(stdout, "ERROR: %d, Getting interleaved coords\\n", interleaved_ret);

<a id="l00451" name="l00451"></a> 451 }

<a id="l00452" name="l00452"></a> 452 }

<a id="l00453" name="l00453"></a> 453 else if (type == [DVS::IMeshChunk::MeshType::CURVILINEAR](dynamic__visualization__store__enums_8h.xhtml#a72a02f8c046b459abfa438d402dbba52acd60e0b216d803cc36de999bfbd2547b)) {

<a id="l00454" name="l00454"></a> 454 coord_ret = mesh_chunk-&gt;[get\_coords\_curv](class_d_v_s_1_1_i_mesh_chunk.xhtml#a8da90ca355541bf876fa23ed267f94cb)(local_ijk_min.data(),

<a id="l00455" name="l00455"></a> 455 local_ijk_max.data(),

<a id="l00456" name="l00456"></a> 456 global_ijk_max.data(),

<a id="l00457" name="l00457"></a> 457 x_coords.data(),

<a id="l00458" name="l00458"></a> 458 y_coords.data(),

<a id="l00459" name="l00459"></a> 459 z_coords.data());

<a id="l00460" name="l00460"></a> 460 if (coord_ret == [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7)) {

<a id="l00461" name="l00461"></a> 461 //Error message for coord\_ret handled later

<a id="l00462" name="l00462"></a> 462 fprintf(stdout, "LocalIJKMin: %f %f %f\\n", local_ijk_min[0], local_ijk_min[1], local_ijk_min[2]);

<a id="l00463" name="l00463"></a> 463 fprintf(stdout, "LocalIJKMax: %f %f %f\\n", local_ijk_max[0], local_ijk_max[1], local_ijk_max[2]);

<a id="l00464" name="l00464"></a> 464 fprintf(stdout, "GlobalIJKMax: %f %f %f\\n", global_ijk_max[0], global_ijk_max[1], global_ijk_max[2]);

<a id="l00465" name="l00465"></a> 465 }

<a id="l00466" name="l00466"></a> 466 

<a id="l00467" name="l00467"></a> 467 //Validating the coords match if interleaved

<a id="l00468" name="l00468"></a> 468 std::vector&lt;float&gt; interleaved(num_coords[0]+num_coords[1]+num_coords[2]);

<a id="l00469" name="l00469"></a> 469 std::array&lt;float,3&gt; local_ijk_min_2, local_ijk_max_2, global_ijk_max_2;

<a id="l00470" name="l00470"></a> 470 auto interleaved_ret = mesh_chunk-&gt;[get\_coords\_curv\_interleaved](class_d_v_s_1_1_i_mesh_chunk.xhtml#a5c191e3ec6d65a527fc1f3224f84d503)(local_ijk_min_2.data(),

<a id="l00471" name="l00471"></a> 471 local_ijk_max_2.data(),

<a id="l00472" name="l00472"></a> 472 global_ijk_max_2.data(),

<a id="l00473" name="l00473"></a> 473 interleaved.data());

<a id="l00474" name="l00474"></a> 474 if (coord_ret == [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) &amp;&amp; interleaved_ret == [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7)) {

<a id="l00475" name="l00475"></a> 475 bool good_values = x_coords[0] == interleaved[0];

<a id="l00476" name="l00476"></a> 476 good_values &amp;= y_coords[0] == interleaved[1];

<a id="l00477" name="l00477"></a> 477 good_values &amp;= z_coords[0] == interleaved[2];

<a id="l00478" name="l00478"></a> 478 for (uint32_t i = 1; i &lt; num_coords[0] &amp;&amp; good_values; i++) {

<a id="l00479" name="l00479"></a> 479 good_values &amp;= x_coords[i] == interleaved[i*3];

<a id="l00480" name="l00480"></a> 480 good_values &amp;= y_coords[i] == interleaved[i*3+1];

<a id="l00481" name="l00481"></a> 481 good_values &amp;= z_coords[i] == interleaved[i*3+2];

<a id="l00482" name="l00482"></a> 482 }

<a id="l00483" name="l00483"></a> 483 for (uint32_t i = 0; i &lt; 3 &amp;&amp; good_values; i++) {

<a id="l00484" name="l00484"></a> 484 good_values &amp;= local_ijk_min[i] == local_ijk_min_2[i];

<a id="l00485" name="l00485"></a> 485 good_values &amp;= local_ijk_max[i] == local_ijk_max_2[i];

<a id="l00486" name="l00486"></a> 486 good_values &amp;= global_ijk_max[i] == global_ijk_max_2[i];

<a id="l00487" name="l00487"></a> 487 }

<a id="l00488" name="l00488"></a> 488 if (!good_values) {

<a id="l00489" name="l00489"></a> 489 fprintf(stdout, "ERROR: Interleaved curv coords don't match non-interleaved\\n");

<a id="l00490" name="l00490"></a> 490 }

<a id="l00491" name="l00491"></a> 491 }

<a id="l00492" name="l00492"></a> 492 else if (interleaved_ret != [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7)) {

<a id="l00493" name="l00493"></a> 493 //Error message for coord\_ret handled later

<a id="l00494" name="l00494"></a> 494 fprintf(stdout, "ERROR: %d, Getting interleaved curv coords\\n", interleaved_ret);

<a id="l00495" name="l00495"></a> 495 }

<a id="l00496" name="l00496"></a> 496 }

<a id="l00497" name="l00497"></a> 497 else if (type == [DVS::IMeshChunk::MeshType::PARALLELEPIPED](dynamic__visualization__store__enums_8h.xhtml#a72a02f8c046b459abfa438d402dbba52a64849d874c1036d5e88f88e53706a76f)) {

<a id="l00498" name="l00498"></a> 498 coord_ret = mesh_chunk-&gt;[get\_coords\_parallele](class_d_v_s_1_1_i_mesh_chunk.xhtml#a959ecd945a3e46b25b4e816a35eb4123)(origin.data(),

<a id="l00499" name="l00499"></a> 499 dir_vec_i.data(),

<a id="l00500" name="l00500"></a> 500 dir_vec_j.data(),

<a id="l00501" name="l00501"></a> 501 dir_vec_k.data(),

<a id="l00502" name="l00502"></a> 502 local_ijk_min.data(),

<a id="l00503" name="l00503"></a> 503 local_ijk_max.data(),

<a id="l00504" name="l00504"></a> 504 global_ijk_max.data(),

<a id="l00505" name="l00505"></a> 505 x_coords.data(),

<a id="l00506" name="l00506"></a> 506 y_coords.data(),

<a id="l00507" name="l00507"></a> 507 z_coords.data());

<a id="l00508" name="l00508"></a> 508 if (coord_ret == [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7)) {

<a id="l00509" name="l00509"></a> 509 fprintf(stdout, "Origin: %f %f %f\\n", origin[0], origin[1], origin[2]);

<a id="l00510" name="l00510"></a> 510 fprintf(stdout, "DirVecI: %f, %f, %f\\n", dir_vec_i[0], dir_vec_i[1], dir_vec_i[2]);

<a id="l00511" name="l00511"></a> 511 fprintf(stdout, "DirVecJ: %f, %f, %f\\n", dir_vec_j[0], dir_vec_j[1], dir_vec_j[2]);

<a id="l00512" name="l00512"></a> 512 fprintf(stdout, "DirVecK: %f, %f, %f\\n", dir_vec_k[0], dir_vec_k[1], dir_vec_k[2]);

<a id="l00513" name="l00513"></a> 513 fprintf(stdout, "LocalIJKMin: %f %f %f\\n", local_ijk_min[0], local_ijk_min[1], local_ijk_min[2]);

<a id="l00514" name="l00514"></a> 514 fprintf(stdout, "LocalIJKMax: %f %f %f\\n", local_ijk_max[0], local_ijk_max[1], local_ijk_max[2]);

<a id="l00515" name="l00515"></a> 515 fprintf(stdout, "GlobalIJKMax: %f %f %f\\n", global_ijk_max[0], global_ijk_max[1], global_ijk_max[2]);

<a id="l00516" name="l00516"></a> 516 }

<a id="l00517" name="l00517"></a> 517 }

<a id="l00518" name="l00518"></a> 518 

<a id="l00519" name="l00519"></a> 519 if (coord_ret == [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7)) {

<a id="l00520" name="l00520"></a> 520 fprintf(stdout, "X:");

<a id="l00521" name="l00521"></a> 521 for (uint32_t i = 0; i &lt; num_coords[0]; i++) {

<a id="l00522" name="l00522"></a> 522 fprintf(stdout, " %f", x_coords[i]);

<a id="l00523" name="l00523"></a> 523 }

<a id="l00524" name="l00524"></a> 524 fprintf(stdout, "\\n");

<a id="l00525" name="l00525"></a> 525 

<a id="l00526" name="l00526"></a> 526 fprintf(stdout, "Y:");

<a id="l00527" name="l00527"></a> 527 for (uint32_t i = 0; i &lt; num_coords[1]; i++) {

<a id="l00528" name="l00528"></a> 528 fprintf(stdout, " %f", y_coords[i]);

<a id="l00529" name="l00529"></a> 529 }

<a id="l00530" name="l00530"></a> 530 fprintf(stdout, "\\n");

<a id="l00531" name="l00531"></a> 531 

<a id="l00532" name="l00532"></a> 532 fprintf(stdout, "Z:");

<a id="l00533" name="l00533"></a> 533 for (uint32_t i = 0; i &lt; num_coords[2]; i++) {

<a id="l00534" name="l00534"></a> 534 fprintf(stdout, " %f", z_coords[i]);

<a id="l00535" name="l00535"></a> 535 }

<a id="l00536" name="l00536"></a> 536 fprintf(stdout, "\\n");

<a id="l00537" name="l00537"></a> 537 }

<a id="l00538" name="l00538"></a> 538 else {

<a id="l00539" name="l00539"></a> 539 fprintf(stdout, "ERROR: %d, Getting coords\\n", coord_ret);

<a id="l00540" name="l00540"></a> 540 }

<a id="l00541" name="l00541"></a> 541 }

<a id="l00542" name="l00542"></a> 542 

<a id="l00543" name="l00543"></a> 543 uint32_t num_nodal_vars = 0;

<a id="l00544" name="l00544"></a> 544 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != mesh_chunk-&gt;[get\_num\_variables](class_d_v_s_1_1_i_mesh_chunk.xhtml#a7ec07c07cdc908ec42b40e3c42c0a5f4)(num_nodal_vars)) {

<a id="l00545" name="l00545"></a> 545 fprintf(stdout, "ERROR: Could not get num nodal vars\\n");

<a id="l00546" name="l00546"></a> 546 }

<a id="l00547" name="l00547"></a> 547 for (uint32_t var_index = 0; var_index &lt; num_nodal_vars; var_index++) {

<a id="l00548" name="l00548"></a> 548 auto var = mesh_chunk-&gt;[get\_variable](class_d_v_s_1_1_i_mesh_chunk.xhtml#afd77fb928baa23c8c453f897e082f880)(var_index);

<a id="l00549" name="l00549"></a> 549 if (var-&gt;[get\_var\_location](class_d_v_s_1_1_i_var.xhtml#a7e97f43d3d1057267399c0e66deadd3d)() != [dvs\_var\_location::NODE](dynamic__visualization__store__enums_8h.xhtml#af4f0eba512eff253854b44d7ce078491a59a889456a2d742fdca191dccb3e871d)) {

<a id="l00550" name="l00550"></a> 550 fprintf(stdout, "ERROR: Var is not nodal and should be\\n");

<a id="l00551" name="l00551"></a> 551 }

<a id="l00552" name="l00552"></a> 552 

<a id="l00553" name="l00553"></a> 553 uint32_t num_var_values = 0;

<a id="l00554" name="l00554"></a> 554 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != mesh_chunk-&gt;[get\_variable\_data](class_d_v_s_1_1_i_mesh_chunk.xhtml#ab72dfdd09b4258da7de7308ef48cb1fc)(var_index, &amp;num_var_values, nullptr)) {

<a id="l00555" name="l00555"></a> 555 fprintf(stdout, "ERROR: Could not get nodal var data\\n");

<a id="l00556" name="l00556"></a> 556 }

<a id="l00557" name="l00557"></a> 557 

<a id="l00558" name="l00558"></a> 558 std::string nodal_var_hash_1(mesh_chunk-&gt;[get\_var\_hash\_size](class_d_v_s_1_1_i_var_hash.xhtml#acc08705e0bdfdea1d42aa358c6167b7d)(var_index), 0);

<a id="l00559" name="l00559"></a> 559 std::string nodal_var_hash_2(mesh_chunk-&gt;[get\_var\_hash\_size](class_d_v_s_1_1_i_var_hash.xhtml#acc08705e0bdfdea1d42aa358c6167b7d)(var), 0);

<a id="l00560" name="l00560"></a> 560 if (nodal_var_hash_1.empty() || [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != mesh_chunk-&gt;[get\_var\_hash](class_d_v_s_1_1_i_var_hash.xhtml#a811a732d5542882667664d079dfdc486)(var_index, &amp;(nodal_var_hash_1[0]))) {

<a id="l00561" name="l00561"></a> 561 fprintf(stdout, "ERROR: Could not get nodal var hash 1\\n");

<a id="l00562" name="l00562"></a> 562 }

<a id="l00563" name="l00563"></a> 563 if (nodal_var_hash_2.empty() || [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != mesh_chunk-&gt;[get\_var\_hash](class_d_v_s_1_1_i_var_hash.xhtml#a811a732d5542882667664d079dfdc486)(var, &amp;(nodal_var_hash_2[0]))) {

<a id="l00564" name="l00564"></a> 564 fprintf(stdout, "ERROR: Could not get nodal var hash 2\\n");

<a id="l00565" name="l00565"></a> 565 }

<a id="l00566" name="l00566"></a> 566 if (nodal_var_hash_1 != nodal_var_hash_2) {

<a id="l00567" name="l00567"></a> 567 fprintf(stdout, "ERROR: Nodal var hashes do not match\\n");

<a id="l00568" name="l00568"></a> 568 }

<a id="l00569" name="l00569"></a> 569 

<a id="l00570" name="l00570"></a> 570 fprintf(stdout, "Nodal Var: %s, Num Values: %u, Hash: %s\\n", var-&gt;[get\_name](class_d_v_s_1_1_i_var.xhtml#af9d82173f26ea832cd2d9dcc9742bd56)(), num_var_values, nodal_var_hash_1.c_str());

<a id="l00571" name="l00571"></a> 571 if (all_variable_data) {

<a id="l00572" name="l00572"></a> 572 float min = FLT_MAX-1;

<a id="l00573" name="l00573"></a> 573 float max = -1*min;

<a id="l00574" name="l00574"></a> 574 std::vector&lt;float&gt; var_data(num_var_values);

<a id="l00575" name="l00575"></a> 575 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != mesh_chunk-&gt;[get\_variable\_data](class_d_v_s_1_1_i_mesh_chunk.xhtml#ab72dfdd09b4258da7de7308ef48cb1fc)(var_index, nullptr, var_data.data())) {

<a id="l00576" name="l00576"></a> 576 fprintf(stdout, "ERROR: Could not get nodal var data\\n");

<a id="l00577" name="l00577"></a> 577 }

<a id="l00578" name="l00578"></a> 578 fprintf(stdout, "VarData:");

<a id="l00579" name="l00579"></a> 579 for (const auto&amp; val : var_data) {

<a id="l00580" name="l00580"></a> 580 fprintf(stdout, " %f", val);

<a id="l00581" name="l00581"></a> 581 if (val &lt; min) {

<a id="l00582" name="l00582"></a> 582 min = val;

<a id="l00583" name="l00583"></a> 583 }

<a id="l00584" name="l00584"></a> 584 if (val &gt; max) {

<a id="l00585" name="l00585"></a> 585 max = val;

<a id="l00586" name="l00586"></a> 586 }

<a id="l00587" name="l00587"></a> 587 }

<a id="l00588" name="l00588"></a> 588 fprintf(stdout, "\\n");

<a id="l00589" name="l00589"></a> 589 fprintf(stdout, "Min: %f, Max: %f\\n", min, max);

<a id="l00590" name="l00590"></a> 590 }

<a id="l00591" name="l00591"></a> 591 }

<a id="l00592" name="l00592"></a> 592 

<a id="l00593" name="l00593"></a> 593 uint32_t num_element_blocks = 0;

<a id="l00594" name="l00594"></a> 594 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != mesh_chunk-&gt;[get\_num\_element\_blocks](class_d_v_s_1_1_i_mesh_chunk.xhtml#a5f3772e845d3ffe73c4a6525d78ab2ad)(num_element_blocks)) {

<a id="l00595" name="l00595"></a> 595 fprintf(stdout, "ERROR: Could not get number of element blocks\\n");

<a id="l00596" name="l00596"></a> 596 }

<a id="l00597" name="l00597"></a> 597 std::vector&lt;dvs_element_type&gt; element_block_types(num_element_blocks);

<a id="l00598" name="l00598"></a> 598 mesh_chunk-&gt;[get\_element\_block\_types](class_d_v_s_1_1_i_mesh_chunk.xhtml#a44a916bcd71f4d6b33661b249d52c61b)(element_block_types.data());

<a id="l00599" name="l00599"></a> 599 for (const auto&amp; elem_type : element_block_types) {

<a id="l00600" name="l00600"></a> 600 auto elem_block = mesh_chunk-&gt;[get\_element\_block\_by\_type](class_d_v_s_1_1_i_mesh_chunk.xhtml#a54b8d01348ef368966b49c1329e74b74)(elem_type);

<a id="l00601" name="l00601"></a> 601 if (elem_block) {

<a id="l00602" name="l00602"></a> 602 switch(elem_block-&gt;get_element_type())

<a id="l00603" name="l00603"></a> 603 {

<a id="l00604" name="l00604"></a> 604 case N_SIDED_POLYGON:

<a id="l00605" name="l00605"></a> 605 case N_SIDED_POLYGON_GHOST:

<a id="l00606" name="l00606"></a> 606 {

<a id="l00607" name="l00607"></a> 607 uint32_t dummy = 0;

<a id="l00608" name="l00608"></a> 608 uint32_t num_elements = 0;

<a id="l00609" name="l00609"></a> 609 uint32_t nodes_per_polygon_size = 0;

<a id="l00610" name="l00610"></a> 610 uint32_t indices_size = 0;

<a id="l00611" name="l00611"></a> 611 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_num_elements(num_elements)) {

<a id="l00612" name="l00612"></a> 612 fprintf(stdout, "ERROR getting number of elements\\n");

<a id="l00613" name="l00613"></a> 613 }

<a id="l00614" name="l00614"></a> 614 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_nodes_per_element(dummy)) {

<a id="l00615" name="l00615"></a> 615 fprintf(stdout, "ERROR get\_nodes\_per\_element should be invalid for this type\\n");

<a id="l00616" name="l00616"></a> 616 }

<a id="l00617" name="l00617"></a> 617 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_size(dummy)) {

<a id="l00618" name="l00618"></a> 618 fprintf(stdout, "ERROR get\_connectivity\_size should be invalid for this type\\n");

<a id="l00619" name="l00619"></a> 619 }

<a id="l00620" name="l00620"></a> 620 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity(nullptr)) {

<a id="l00621" name="l00621"></a> 621 fprintf(stdout, "ERROR get\_connectivity should be invalid for this type\\n");

<a id="l00622" name="l00622"></a> 622 }

<a id="l00623" name="l00623"></a> 623 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polyhedral_size(dummy, dummy, dummy)) {

<a id="l00624" name="l00624"></a> 624 fprintf(stdout, "ERROR get\_connectivity\_polyhedral\_size should be invalid for this type\\n");

<a id="l00625" name="l00625"></a> 625 }

<a id="l00626" name="l00626"></a> 626 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polyhedral(nullptr,nullptr,nullptr)) {

<a id="l00627" name="l00627"></a> 627 fprintf(stdout, "ERROR get\_connectivity\_polyhedral should be invalid for this type\\n");

<a id="l00628" name="l00628"></a> 628 }

<a id="l00629" name="l00629"></a> 629 

<a id="l00630" name="l00630"></a> 630 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_connectivity_polygon_size(nodes_per_polygon_size, indices_size)) {

<a id="l00631" name="l00631"></a> 631 fprintf(stdout, "ERROR with get\_connectivity\_polygon\_size()\\n");

<a id="l00632" name="l00632"></a> 632 }

<a id="l00633" name="l00633"></a> 633 

<a id="l00634" name="l00634"></a> 634 std::string conn_hash(elem_block-&gt;get_hash_size(), 0);

<a id="l00635" name="l00635"></a> 635 if (conn_hash.empty() || elem_block-&gt;get_hash(&amp;(conn_hash[0]))) {

<a id="l00636" name="l00636"></a> 636 fprintf(stdout, "ERROR: Could not load connectivity hash\\n");

<a id="l00637" name="l00637"></a> 637 }

<a id="l00638" name="l00638"></a> 638 fprintf(stdout, "- Unstructured Polygon Element: Type: %i, Ghost: %u, Number of Elements: %u, Nodes Per Poly: %u, Indices Size: %u, Hash: %s\\n",

<a id="l00639" name="l00639"></a> 639 elem_type, elem_block-&gt;get_is_ghost(), num_elements, nodes_per_polygon_size, indices_size, conn_hash.c_str());

<a id="l00640" name="l00640"></a> 640 

<a id="l00641" name="l00641"></a> 641 

<a id="l00642" name="l00642"></a> 642 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_connectivity_polygon(nullptr, nullptr)) {

<a id="l00643" name="l00643"></a> 643 fprintf(stdout, "ERROR get\_connectivity\_polygon\\n");

<a id="l00644" name="l00644"></a> 644 }

<a id="l00645" name="l00645"></a> 645 

<a id="l00646" name="l00646"></a> 646 if (all_connectivity) {

<a id="l00647" name="l00647"></a> 647 std::vector&lt;uint32_t&gt; nodes_per_polygon(nodes_per_polygon_size);

<a id="l00648" name="l00648"></a> 648 std::vector&lt;uint32_t&gt; indices(indices_size);

<a id="l00649" name="l00649"></a> 649 

<a id="l00650" name="l00650"></a> 650 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_connectivity_polygon(nodes_per_polygon.data(),

<a id="l00651" name="l00651"></a> 651 indices.data())) {

<a id="l00652" name="l00652"></a> 652 fprintf(stdout, "ERROR get\_connectivity\_polygon\\n");

<a id="l00653" name="l00653"></a> 653 }

<a id="l00654" name="l00654"></a> 654 else {

<a id="l00655" name="l00655"></a> 655 fprintf(stdout, "NPP:");

<a id="l00656" name="l00656"></a> 656 for (const auto&amp; nodes : nodes_per_polygon) {

<a id="l00657" name="l00657"></a> 657 fprintf(stdout, " %u", nodes);

<a id="l00658" name="l00658"></a> 658 }

<a id="l00659" name="l00659"></a> 659 fprintf(stdout, "\\n");

<a id="l00660" name="l00660"></a> 660 fprintf(stdout, "Indices:");

<a id="l00661" name="l00661"></a> 661 for (const auto&amp; index : indices) {

<a id="l00662" name="l00662"></a> 662 fprintf(stdout, " %u", index);

<a id="l00663" name="l00663"></a> 663 }

<a id="l00664" name="l00664"></a> 664 fprintf(stdout, "\\n");

<a id="l00665" name="l00665"></a> 665 }

<a id="l00666" name="l00666"></a> 666 }

<a id="l00667" name="l00667"></a> 667 break;

<a id="l00668" name="l00668"></a> 668 }

<a id="l00669" name="l00669"></a> 669 case CONVEX_POLYHEDRON:

<a id="l00670" name="l00670"></a> 670 case CONVEX_POLYHEDRON_GHOST:

<a id="l00671" name="l00671"></a> 671 {

<a id="l00672" name="l00672"></a> 672 uint32_t dummy = 0;

<a id="l00673" name="l00673"></a> 673 uint32_t num_elements = 0;

<a id="l00674" name="l00674"></a> 674 uint32_t faces_per_elem_size = 0;

<a id="l00675" name="l00675"></a> 675 uint32_t nodes_per_face_size = 0;

<a id="l00676" name="l00676"></a> 676 uint32_t indices_size = 0;

<a id="l00677" name="l00677"></a> 677 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_num_elements(num_elements)) {

<a id="l00678" name="l00678"></a> 678 fprintf(stdout, "ERROR getting number of elements\\n");

<a id="l00679" name="l00679"></a> 679 }

<a id="l00680" name="l00680"></a> 680 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_nodes_per_element(dummy)) {

<a id="l00681" name="l00681"></a> 681 fprintf(stdout, "ERROR get\_nodes\_per\_element should be invalid for this type\\n");

<a id="l00682" name="l00682"></a> 682 }

<a id="l00683" name="l00683"></a> 683 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_size(dummy)) {

<a id="l00684" name="l00684"></a> 684 fprintf(stdout, "ERROR get\_connectivity\_size should be invalid for this type\\n");

<a id="l00685" name="l00685"></a> 685 }

<a id="l00686" name="l00686"></a> 686 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polygon_size(dummy, dummy)) {

<a id="l00687" name="l00687"></a> 687 fprintf(stdout, "ERROR get\_connectivity\_polygon\_size should be invalid for this type\\n");

<a id="l00688" name="l00688"></a> 688 }

<a id="l00689" name="l00689"></a> 689 

<a id="l00690" name="l00690"></a> 690 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_connectivity_polyhedral_size(faces_per_elem_size, nodes_per_face_size, indices_size)) {

<a id="l00691" name="l00691"></a> 691 fprintf(stdout, "ERROR with get\_connectivity\_polyhedral\_size\\n");

<a id="l00692" name="l00692"></a> 692 }

<a id="l00693" name="l00693"></a> 693 

<a id="l00694" name="l00694"></a> 694 std::string conn_hash(elem_block-&gt;get_hash_size(), 0);

<a id="l00695" name="l00695"></a> 695 if (conn_hash.empty() || elem_block-&gt;get_hash(&amp;(conn_hash[0]))) {

<a id="l00696" name="l00696"></a> 696 fprintf(stdout, "ERROR: Could not load connectivity hash\\n");

<a id="l00697" name="l00697"></a> 697 }

<a id="l00698" name="l00698"></a> 698 

<a id="l00699" name="l00699"></a> 699 fprintf(stdout, "- Unstructured Polyhedral Element: Type: %i, Ghost: %u, Number of Elements: %u, FPE: %u NPF: %u Indices: %u, Hash: %s\\n",

<a id="l00700" name="l00700"></a> 700 elem_type, elem_block-&gt;get_is_ghost(), num_elements, faces_per_elem_size, nodes_per_face_size, indices_size, conn_hash.c_str());

<a id="l00701" name="l00701"></a> 701 

<a id="l00702" name="l00702"></a> 702 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_connectivity_polyhedral(nullptr, nullptr, nullptr)) {

<a id="l00703" name="l00703"></a> 703 fprintf(stdout, "ERROR get\_connectivity\_polyhedral\\n");

<a id="l00704" name="l00704"></a> 704 }

<a id="l00705" name="l00705"></a> 705 

<a id="l00706" name="l00706"></a> 706 if (all_connectivity) {

<a id="l00707" name="l00707"></a> 707 std::vector&lt;uint32_t&gt; faces_per_element(faces_per_elem_size);

<a id="l00708" name="l00708"></a> 708 std::vector&lt;uint32_t&gt; nodes_per_face(nodes_per_face_size);

<a id="l00709" name="l00709"></a> 709 std::vector&lt;uint32_t&gt; indices(indices_size);

<a id="l00710" name="l00710"></a> 710 

<a id="l00711" name="l00711"></a> 711 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_connectivity_polyhedral(faces_per_element.data(),

<a id="l00712" name="l00712"></a> 712 nodes_per_face.data(),

<a id="l00713" name="l00713"></a> 713 indices.data())) {

<a id="l00714" name="l00714"></a> 714 fprintf(stdout, "ERROR get\_connectivity\_polyhedral\\n");

<a id="l00715" name="l00715"></a> 715 }

<a id="l00716" name="l00716"></a> 716 else {

<a id="l00717" name="l00717"></a> 717 fprintf(stdout, "FPE:");

<a id="l00718" name="l00718"></a> 718 for (const auto&amp; faces : faces_per_element) {

<a id="l00719" name="l00719"></a> 719 fprintf(stdout, " %u", faces);

<a id="l00720" name="l00720"></a> 720 }

<a id="l00721" name="l00721"></a> 721 fprintf(stdout, "\\n");

<a id="l00722" name="l00722"></a> 722 fprintf(stdout, "NPF:");

<a id="l00723" name="l00723"></a> 723 for (const auto&amp; nodes : nodes_per_face) {

<a id="l00724" name="l00724"></a> 724 fprintf(stdout, " %u", nodes);

<a id="l00725" name="l00725"></a> 725 }

<a id="l00726" name="l00726"></a> 726 fprintf(stdout, "\\n");

<a id="l00727" name="l00727"></a> 727 fprintf(stdout, "Indices:");

<a id="l00728" name="l00728"></a> 728 for (const auto&amp; index : indices) {

<a id="l00729" name="l00729"></a> 729 fprintf(stdout, " %u", index);

<a id="l00730" name="l00730"></a> 730 }

<a id="l00731" name="l00731"></a> 731 fprintf(stdout, "\\n");

<a id="l00732" name="l00732"></a> 732 }

<a id="l00733" name="l00733"></a> 733 }

<a id="l00734" name="l00734"></a> 734 break;

<a id="l00735" name="l00735"></a> 735 }

<a id="l00736" name="l00736"></a> 736 case STRUCTURED:

<a id="l00737" name="l00737"></a> 737 {

<a id="l00738" name="l00738"></a> 738 uint32_t dummy = 0;

<a id="l00739" name="l00739"></a> 739 uint32_t num_elements = 0;

<a id="l00740" name="l00740"></a> 740 uint32_t nodes_per_element = 0;

<a id="l00741" name="l00741"></a> 741 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_num_elements(num_elements)) {

<a id="l00742" name="l00742"></a> 742 fprintf(stdout, "ERROR get\_num\_elements\\n");

<a id="l00743" name="l00743"></a> 743 }

<a id="l00744" name="l00744"></a> 744 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_nodes_per_element(nodes_per_element)) {

<a id="l00745" name="l00745"></a> 745 fprintf(stdout, "Error get\_nodes\_per\_element\\n");

<a id="l00746" name="l00746"></a> 746 }

<a id="l00747" name="l00747"></a> 747 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_size(dummy)) {

<a id="l00748" name="l00748"></a> 748 fprintf(stdout, "Error get\_connectivity\_size should be invalid for this type\\n");

<a id="l00749" name="l00749"></a> 749 }

<a id="l00750" name="l00750"></a> 750 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity(nullptr)) {

<a id="l00751" name="l00751"></a> 751 fprintf(stdout, "Error get\_connectivity should be invalid for this type\\n");

<a id="l00752" name="l00752"></a> 752 }

<a id="l00753" name="l00753"></a> 753 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polygon_size(dummy,dummy)) {

<a id="l00754" name="l00754"></a> 754 fprintf(stdout, "Error get\_connectivity\_polygon\_size should be invalid for this type\\n");

<a id="l00755" name="l00755"></a> 755 }

<a id="l00756" name="l00756"></a> 756 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polygon(nullptr,nullptr)) {

<a id="l00757" name="l00757"></a> 757 fprintf(stdout, "Error get\_connectivity\_polygon should be invalid for this type\\n");

<a id="l00758" name="l00758"></a> 758 }

<a id="l00759" name="l00759"></a> 759 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polyhedral_size(dummy,dummy,dummy)) {

<a id="l00760" name="l00760"></a> 760 fprintf(stdout, "Error get\_connectivity\_polyhedral\_size should be invalid for this type\\n");

<a id="l00761" name="l00761"></a> 761 }

<a id="l00762" name="l00762"></a> 762 std::string conn_hash(elem_block-&gt;get_hash_size(), 0);

<a id="l00763" name="l00763"></a> 763 if (conn_hash.empty() || elem_block-&gt;get_hash(&amp;(conn_hash[0]))) {

<a id="l00764" name="l00764"></a> 764 fprintf(stdout, "ERROR: Could not load connectivity hash\\n");

<a id="l00765" name="l00765"></a> 765 }

<a id="l00766" name="l00766"></a> 766 fprintf(stdout, "- Structured Element: Type: %i NPE: %u Hash: %s\\n", elem_type, nodes_per_element, conn_hash.c_str());

<a id="l00767" name="l00767"></a> 767 break;

<a id="l00768" name="l00768"></a> 768 }

<a id="l00769" name="l00769"></a> 769 case UNDEFINED:

<a id="l00770" name="l00770"></a> 770 case UNDEFINED_PARALLELEPIPED:

<a id="l00771" name="l00771"></a> 771 case UNDEFINED_CURVILINEAR:

<a id="l00772" name="l00772"></a> 772 fprintf(stdout, "ERROR, undefined element type found\\n");

<a id="l00773" name="l00773"></a> 773 break;

<a id="l00774" name="l00774"></a> 774 

<a id="l00775" name="l00775"></a> 775 default:

<a id="l00776" name="l00776"></a> 776 {

<a id="l00777" name="l00777"></a> 777 uint32_t dummy = 0;

<a id="l00778" name="l00778"></a> 778 uint32_t num_elements = 0;

<a id="l00779" name="l00779"></a> 779 uint32_t nodes_per_elem = 0;

<a id="l00780" name="l00780"></a> 780 uint32_t indices_size = 0;

<a id="l00781" name="l00781"></a> 781 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_num_elements(num_elements)) {

<a id="l00782" name="l00782"></a> 782 fprintf(stdout, "ERROR getting number of elements\\n");

<a id="l00783" name="l00783"></a> 783 }

<a id="l00784" name="l00784"></a> 784 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_nodes_per_element(nodes_per_elem)) {

<a id="l00785" name="l00785"></a> 785 fprintf(stdout, "ERROR getting nodes per element\\n");

<a id="l00786" name="l00786"></a> 786 }

<a id="l00787" name="l00787"></a> 787 

<a id="l00788" name="l00788"></a> 788 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polygon_size(dummy, dummy)) {

<a id="l00789" name="l00789"></a> 789 fprintf(stdout, "ERROR get\_connectivity\_polygon\_size should be invalid for this type\\n");

<a id="l00790" name="l00790"></a> 790 }

<a id="l00791" name="l00791"></a> 791 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polygon(nullptr, nullptr)) {

<a id="l00792" name="l00792"></a> 792 fprintf(stdout, "ERROR get\_connectivity\_polygon should be invalid for this type\\n");

<a id="l00793" name="l00793"></a> 793 }

<a id="l00794" name="l00794"></a> 794 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polyhedral_size(dummy, dummy, dummy)) {

<a id="l00795" name="l00795"></a> 795 fprintf(stdout, "ERROR get\_connectivity\_polyhedral\_size should be invalid for this type\\n");

<a id="l00796" name="l00796"></a> 796 }

<a id="l00797" name="l00797"></a> 797 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) == elem_block-&gt;get_connectivity_polyhedral(nullptr, nullptr, nullptr)) {

<a id="l00798" name="l00798"></a> 798 fprintf(stdout, "ERROR get\_connectivity\_polyhedral should be invalid for this type\\n");

<a id="l00799" name="l00799"></a> 799 }

<a id="l00800" name="l00800"></a> 800 

<a id="l00801" name="l00801"></a> 801 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_connectivity_size(indices_size)) {

<a id="l00802" name="l00802"></a> 802 fprintf(stdout, "ERROR get\_connectivity\_size\\n");

<a id="l00803" name="l00803"></a> 803 }

<a id="l00804" name="l00804"></a> 804 

<a id="l00805" name="l00805"></a> 805 std::string conn_hash(elem_block-&gt;get_hash_size(), 0);

<a id="l00806" name="l00806"></a> 806 if (conn_hash.empty() || elem_block-&gt;get_hash(&amp;(conn_hash[0]))) {

<a id="l00807" name="l00807"></a> 807 fprintf(stdout, "ERROR: Could not load connectivity hash\\n");

<a id="l00808" name="l00808"></a> 808 }

<a id="l00809" name="l00809"></a> 809 

<a id="l00810" name="l00810"></a> 810 fprintf(stdout, "- Unstructured Basic Element: Type: %i, Ghost: %u, Number of Elements: %u, Nodes Per Elem: %u, Indices Size: %u, Hash: %s\\n",

<a id="l00811" name="l00811"></a> 811 elem_type, elem_block-&gt;get_is_ghost(), num_elements, nodes_per_elem, indices_size, conn_hash.c_str());

<a id="l00812" name="l00812"></a> 812 

<a id="l00813" name="l00813"></a> 813 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_connectivity(nullptr)) {

<a id="l00814" name="l00814"></a> 814 fprintf(stdout, "ERROR get\_connectivity\\n");

<a id="l00815" name="l00815"></a> 815 }

<a id="l00816" name="l00816"></a> 816 

<a id="l00817" name="l00817"></a> 817 if (all_connectivity) {

<a id="l00818" name="l00818"></a> 818 std::vector&lt;uint32_t&gt; indices(indices_size);

<a id="l00819" name="l00819"></a> 819 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_connectivity(indices.data())) {

<a id="l00820" name="l00820"></a> 820 fprintf(stdout, "ERROR get\_connectivity\\n");

<a id="l00821" name="l00821"></a> 821 }

<a id="l00822" name="l00822"></a> 822 else {

<a id="l00823" name="l00823"></a> 823 fprintf(stdout, "Indices:");

<a id="l00824" name="l00824"></a> 824 for (const auto&amp; index : indices) {

<a id="l00825" name="l00825"></a> 825 fprintf(stdout, " %u", index);

<a id="l00826" name="l00826"></a> 826 }

<a id="l00827" name="l00827"></a> 827 fprintf(stdout, "\\n");

<a id="l00828" name="l00828"></a> 828 }

<a id="l00829" name="l00829"></a> 829 }

<a id="l00830" name="l00830"></a> 830 break;

<a id="l00831" name="l00831"></a> 831 }

<a id="l00832" name="l00832"></a> 832 }

<a id="l00833" name="l00833"></a> 833 

<a id="l00834" name="l00834"></a> 834 uint32_t num_elemental_vars = 0;

<a id="l00835" name="l00835"></a> 835 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_num_variables(num_elemental_vars)) {

<a id="l00836" name="l00836"></a> 836 fprintf(stdout, "ERROR: Could not get num elemental vars\\n");

<a id="l00837" name="l00837"></a> 837 }

<a id="l00838" name="l00838"></a> 838 for (uint32_t var_index = 0; var_index &lt; num_elemental_vars; var_index++) {

<a id="l00839" name="l00839"></a> 839 auto var = elem_block-&gt;get_variable(var_index);

<a id="l00840" name="l00840"></a> 840 if (var-&gt;[get\_var\_location](class_d_v_s_1_1_i_var.xhtml#a7e97f43d3d1057267399c0e66deadd3d)() != [dvs\_var\_location::ELEMENT](dynamic__visualization__store__enums_8h.xhtml#af4f0eba512eff253854b44d7ce078491a3d10bfe84917127ab3347aa5c6309f33)) {

<a id="l00841" name="l00841"></a> 841 fprintf(stdout, "ERROR: Var is not elemental and should be\\n");

<a id="l00842" name="l00842"></a> 842 }

<a id="l00843" name="l00843"></a> 843 

<a id="l00844" name="l00844"></a> 844 uint32_t num_elem_var_values = 0;

<a id="l00845" name="l00845"></a> 845 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_variable_data(var_index, &amp;num_elem_var_values, nullptr)) {

<a id="l00846" name="l00846"></a> 846 fprintf(stdout, "ERROR: Could not get elemental var data\\n");

<a id="l00847" name="l00847"></a> 847 }

<a id="l00848" name="l00848"></a> 848 std::string elem_var_hash_1(elem_block-&gt;get_var_hash_size(var_index), 0);

<a id="l00849" name="l00849"></a> 849 std::string elem_var_hash_2(elem_block-&gt;get_var_hash_size(var), 0);

<a id="l00850" name="l00850"></a> 850 if (elem_var_hash_1.empty() || [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_var_hash(var_index, &amp;(elem_var_hash_1[0]))) {

<a id="l00851" name="l00851"></a> 851 fprintf(stdout, "ERROR: Could not get elem var hash 1\\n");

<a id="l00852" name="l00852"></a> 852 }

<a id="l00853" name="l00853"></a> 853 if (elem_var_hash_2.empty() || [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_var_hash(var, &amp;(elem_var_hash_2[0]))) {

<a id="l00854" name="l00854"></a> 854 fprintf(stdout, "ERROR: Could not get elem var hash 2\\n");

<a id="l00855" name="l00855"></a> 855 }

<a id="l00856" name="l00856"></a> 856 if (elem_var_hash_1 != elem_var_hash_2) {

<a id="l00857" name="l00857"></a> 857 fprintf(stdout, "ERROR: Elem var hashes do not match\\n");

<a id="l00858" name="l00858"></a> 858 }

<a id="l00859" name="l00859"></a> 859 fprintf(stdout, "Elemental Var: %s, Num Values: %u, Hash: %s\\n", var-&gt;[get\_name](class_d_v_s_1_1_i_var.xhtml#af9d82173f26ea832cd2d9dcc9742bd56)(), num_elem_var_values, elem_var_hash_1.c_str());

<a id="l00860" name="l00860"></a> 860 

<a id="l00861" name="l00861"></a> 861 if (all_variable_data) {

<a id="l00862" name="l00862"></a> 862 std::vector&lt;float&gt; elem_var_data(num_elem_var_values);

<a id="l00863" name="l00863"></a> 863 float min = FLT_MAX-1;

<a id="l00864" name="l00864"></a> 864 float max = -1*min;

<a id="l00865" name="l00865"></a> 865 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != elem_block-&gt;get_variable_data(var_index, nullptr, elem_var_data.data())) {

<a id="l00866" name="l00866"></a> 866 fprintf(stdout, "ERROR: Could not get elemental var data\\n");

<a id="l00867" name="l00867"></a> 867 }

<a id="l00868" name="l00868"></a> 868 fprintf(stdout, "VarData:");

<a id="l00869" name="l00869"></a> 869 for (const auto&amp; val : elem_var_data) {

<a id="l00870" name="l00870"></a> 870 fprintf(stdout, " %f", val);

<a id="l00871" name="l00871"></a> 871 if (val &lt; min) {

<a id="l00872" name="l00872"></a> 872 min = val;

<a id="l00873" name="l00873"></a> 873 }

<a id="l00874" name="l00874"></a> 874 if (val &gt; max) {

<a id="l00875" name="l00875"></a> 875 max = val;

<a id="l00876" name="l00876"></a> 876 }

<a id="l00877" name="l00877"></a> 877 }

<a id="l00878" name="l00878"></a> 878 fprintf(stdout, "\\n");

<a id="l00879" name="l00879"></a> 879 fprintf(stdout, "Min: %f, Max: %f\\n", min, max);

<a id="l00880" name="l00880"></a> 880 }

<a id="l00881" name="l00881"></a> 881 }

<a id="l00882" name="l00882"></a> 882 }

<a id="l00883" name="l00883"></a> 883 } // For elem block types

<a id="l00884" name="l00884"></a> 884 }

<a id="l00885" name="l00885"></a> 885 fprintf (stdout, "\\n");

<a id="l00886" name="l00886"></a> 886 } // For mesh chunks

<a id="l00887" name="l00887"></a> 887 

<a id="l00888" name="l00888"></a> 888 fprintf(stdout, "---------------------------\\n");

<a id="l00889" name="l00889"></a> 889 fprintf(stdout, "Listing All Plot Chunks for Query\\n");

<a id="l00890" name="l00890"></a> 890 fprintf(stdout, "---------------------------\\n");

<a id="l00891" name="l00891"></a> 891 

<a id="l00892" name="l00892"></a> 892 uint32_t num_plot_chunks = 0;

<a id="l00893" name="l00893"></a> 893 err = dataset_query-&gt;get_num_plot_chunks(num_plot_chunks);

<a id="l00894" name="l00894"></a> 894 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != err) {

<a id="l00895" name="l00895"></a> 895 fprintf(stdout, "Error getting number of plot chunks\\n");

<a id="l00896" name="l00896"></a> 896 return err;

<a id="l00897" name="l00897"></a> 897 }

<a id="l00898" name="l00898"></a> 898 for (uint32_t plot_index = 0; plot_index &lt; num_plot_chunks; plot_index++) {

<a id="l00899" name="l00899"></a> 899 auto plot = dataset_query-&gt;get_plot_chunk(plot_index);

<a id="l00900" name="l00900"></a> 900 if (plot) {

<a id="l00901" name="l00901"></a> 901 auto plot_def = plot-&gt;get_object();

<a id="l00902" name="l00902"></a> 902 std::string name;

<a id="l00903" name="l00903"></a> 903 if (plot_def) {

<a id="l00904" name="l00904"></a> 904 name = plot_def-&gt;get_name();

<a id="l00905" name="l00905"></a> 905 }

<a id="l00906" name="l00906"></a> 906 else {

<a id="l00907" name="l00907"></a> 907 fprintf(stdout, "ERROR: No plot definition for plot data\\n");

<a id="l00908" name="l00908"></a> 908 }

<a id="l00909" name="l00909"></a> 909 float time = plot-&gt;get_time();

<a id="l00910" name="l00910"></a> 910 uint32_t rank = plot-&gt;get_rank();

<a id="l00911" name="l00911"></a> 911 

<a id="l00912" name="l00912"></a> 912 std::string hash(plot-&gt;get_hash_size(), 0);

<a id="l00913" name="l00913"></a> 913 if (hash.empty() || [DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != plot-&gt;get_hash(&amp;(hash[0]))) {

<a id="l00914" name="l00914"></a> 914 fprintf(stdout, "ERROR: Could not get plot hash\\n");

<a id="l00915" name="l00915"></a> 915 }

<a id="l00916" name="l00916"></a> 916 

<a id="l00917" name="l00917"></a> 917 fprintf(stdout, "Plot: %s, Time: %f, Rank: %d, Hash: %s\\n",

<a id="l00918" name="l00918"></a> 918 name.c_str(), time, rank, hash.c_str());

<a id="l00919" name="l00919"></a> 919 

<a id="l00920" name="l00920"></a> 920 uint32_t num_values = 0;

<a id="l00921" name="l00921"></a> 921 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != plot-&gt;get_data(&amp;num_values, nullptr, nullptr)) {

<a id="l00922" name="l00922"></a> 922 fprintf(stdout, "ERROR: Could not get plot number of values\\n");

<a id="l00923" name="l00923"></a> 923 }

<a id="l00924" name="l00924"></a> 924 

<a id="l00925" name="l00925"></a> 925 if (num_values &gt; 0) {

<a id="l00926" name="l00926"></a> 926 std::vector&lt;float&gt; x_values(num_values);

<a id="l00927" name="l00927"></a> 927 std::vector&lt;float&gt; y_values(num_values);

<a id="l00928" name="l00928"></a> 928 

<a id="l00929" name="l00929"></a> 929 if ([DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7) != plot-&gt;get_data(nullptr, x_values.data(), y_values.data())) {

<a id="l00930" name="l00930"></a> 930 fprintf(stdout, "ERROR: Could not get plot data values\\n");

<a id="l00931" name="l00931"></a> 931 }

<a id="l00932" name="l00932"></a> 932 

<a id="l00933" name="l00933"></a> 933 fprintf(stdout, "X Values:");

<a id="l00934" name="l00934"></a> 934 for (uint32_t i = 0; i &lt; num_values; i++) {

<a id="l00935" name="l00935"></a> 935 fprintf(stdout, " %f", x_values[i]);

<a id="l00936" name="l00936"></a> 936 }

<a id="l00937" name="l00937"></a> 937 fprintf(stdout, "\\n");

<a id="l00938" name="l00938"></a> 938 

<a id="l00939" name="l00939"></a> 939 fprintf(stdout, "Y Values:");

<a id="l00940" name="l00940"></a> 940 for (uint32_t i = 0; i &lt; num_values; i++) {

<a id="l00941" name="l00941"></a> 941 fprintf(stdout, " %f", y_values[i]);

<a id="l00942" name="l00942"></a> 942 }

<a id="l00943" name="l00943"></a> 943 fprintf(stdout, "\\n");

<a id="l00944" name="l00944"></a> 944 }

<a id="l00945" name="l00945"></a> 945 }

<a id="l00946" name="l00946"></a> 946 }

<a id="l00947" name="l00947"></a> 947 

<a id="l00948" name="l00948"></a> 948 return 0;

<a id="l00949" name="l00949"></a> 949 }

[DVS::IDataset](class_d_v_s_1_1_i_dataset.xhtml)

Interface for datasets for the DVS Reader API.

**Definition:** [dvs\_dataset\_interface.h:44](dvs__dataset__interface_8h_source.xhtml#l00043)



[DVS::IDataset::get\_num\_ranks](class_d_v_s_1_1_i_dataset.xhtml#a423774f63a6f5275d4d4f33da65f37b4)

virtual uint32_t get_num_ranks() const =0

Get the number of ranks for the dataset.



[DVS::IDataset::get\_plot](class_d_v_s_1_1_i_dataset.xhtml#a465ce7d87c7291ce115b0b8d2b848703)

virtual const DVS::IObject * get_plot(uint32_t index) const =0

Get the plot object.



[DVS::IDataset::get\_num\_plots](class_d_v_s_1_1_i_dataset.xhtml#a49e3b27865d865ba36dd5d7e5c659a6b)

virtual uint32_t get_num_plots() const =0

Get the number of plots for this datasets.



[DVS::IDataset::get\_var](class_d_v_s_1_1_i_dataset.xhtml#a52dd0a5187d92908761ddfae07a47273)

virtual const DVS::IVar * get_var(uint32_t index) const =0

Get the var object.



[DVS::IDataset::get\_unit\_system](class_d_v_s_1_1_i_dataset.xhtml#a58184590f98127577ba91292064ccb75)

virtual const char * get_unit_system() const =0

Get the unit system of the dataset.



[DVS::IDataset::get\_num\_chunks\_per\_rank](class_d_v_s_1_1_i_dataset.xhtml#a5ec19061a478d6b2aea0976b9e79f73b)

virtual uint32_t get_num_chunks_per_rank() const =0

Get the size of the chunks_per_rank array for get_chunks_per_rank()



[DVS::IDataset::get\_num\_parts](class_d_v_s_1_1_i_dataset.xhtml#a69aa8f4d0ad2c4fd69e6443f662fbc1d)

virtual uint32_t get_num_parts() const =0

Get the number of parts for this dataset.



[DVS::IDataset::get\_part](class_d_v_s_1_1_i_dataset.xhtml#ab71be7a6ec20c74eeccc625055bc0fb2)

virtual const DVS::IObject * get_part(uint32_t index) const =0

Get a part by index.



[DVS::IDataset::get\_ranks](class_d_v_s_1_1_i_dataset.xhtml#ac620a1f5fb513d636ed59d7b4552197a)

virtual dvs_ret get_ranks(uint32_t *ranks) const =0

Get an array of the ranks for this dataset query.



[DVS::IDataset::get\_num\_variables](class_d_v_s_1_1_i_dataset.xhtml#acd0c0e81b283bce8044d9b4de796574a)

virtual uint32_t get_num_variables() const =0

Get the number of variables for this dataset.



[DVS::IDataset::get\_chunks\_per\_rank](class_d_v_s_1_1_i_dataset.xhtml#afb023f6b10fd4c072e8c7cb140d666ae)

virtual dvs_ret get_chunks_per_rank(uint32_t *chunks_per_rank) const =0

Get the number of chunks for each rank.



[DVS::IHash::get\_hash](class_d_v_s_1_1_i_hash.xhtml#a51eaee86a6e2db4dda7f4326daa33874)

virtual dvs_ret get_hash(char *hash) const =0

Get the hash of the data.



[DVS::IHash::get\_hash\_size](class_d_v_s_1_1_i_hash.xhtml#ac0dedeb8d9dfd442d49d16cb4ddfb221)

virtual uint32_t get_hash_size() const =0

Get the size of the hash to use with IHash::get_hash()



[DVS::IMeshChunk](class_d_v_s_1_1_i_mesh_chunk.xhtml)

Mesh Chunk Interface for DVS Reader API.

**Definition:** [dvs\_mesh\_chunk\_interface.h:49](dvs__mesh__chunk__interface_8h_source.xhtml#l00048)



[DVS::IMeshChunk::get\_coords\_size](class_d_v_s_1_1_i_mesh_chunk.xhtml#a0fe402e619754256a19e0087b76e2c53)

virtual dvs_ret get_coords_size(uint32_t &amp;component_size)=0

Get the size of each coordinate component for unstructured meshes.



[DVS::IMeshChunk::get\_time](class_d_v_s_1_1_i_mesh_chunk.xhtml#a32ad562394805327fbabffa322643701)

virtual float get_time() const =0

Get the time for this mesh chunk.



[DVS::IMeshChunk::get\_coords\_interleaved](class_d_v_s_1_1_i_mesh_chunk.xhtml#a39c2d8cc95f14ecbe9789908881c92a0)

virtual dvs_ret get_coords_interleaved(float *coords)=0

Get the coords for a unstructured meshes interleaved in a single array.



[DVS::IMeshChunk::get\_element\_block\_types](class_d_v_s_1_1_i_mesh_chunk.xhtml#a44a916bcd71f4d6b33661b249d52c61b)

virtual dvs_ret get_element_block_types(dvs_element_type *element_types) const =0

Get an array of the element block types for this mesh chunk.



[DVS::IMeshChunk::get\_element\_block\_by\_type](class_d_v_s_1_1_i_mesh_chunk.xhtml#a54b8d01348ef368966b49c1329e74b74)

virtual DVS::IElementBlock * get_element_block_by_type(dvs_element_type type)=0

Get the element block by element type.



[DVS::IMeshChunk::get\_coords\_curv\_interleaved](class_d_v_s_1_1_i_mesh_chunk.xhtml#a5c191e3ec6d65a527fc1f3224f84d503)

virtual dvs_ret get_coords_curv_interleaved(float local_ijk_min[3], float local_ijk_max[3], float global_ijk_max[3], float *coords)=0

Get the coords for structured curvilinear meshes interleaved in a single array.



[DVS::IMeshChunk::get\_num\_element\_blocks](class_d_v_s_1_1_i_mesh_chunk.xhtml#a5f3772e845d3ffe73c4a6525d78ab2ad)

virtual dvs_ret get_num_element_blocks(uint32_t &amp;num_elem_blocks) const =0

Get the number of element blocks for this mesh chunk.



[DVS::IMeshChunk::get\_chunk](class_d_v_s_1_1_i_mesh_chunk.xhtml#a6b894c57bfd1e70168290ce69ecc5af4)

virtual uint32_t get_chunk() const =0

Get the chunk for this mesh chunk.



[DVS::IMeshChunk::get\_rank](class_d_v_s_1_1_i_mesh_chunk.xhtml#a6c520674083999e99bdf77b2b1eaacf8)

virtual uint32_t get_rank() const =0

Get the rank for the mesh chunk.



[DVS::IMeshChunk::get\_coords\_curv\_size](class_d_v_s_1_1_i_mesh_chunk.xhtml#a70b1069fc8737730efa0fc01a0698fbd)

virtual dvs_ret get_coords_curv_size(uint32_t &amp;component_size)=0

Get the size of each coordinate component for structured curvilinear meshes.



[DVS::IMeshChunk::get\_coords](class_d_v_s_1_1_i_mesh_chunk.xhtml#a7738e954570e849462ff493ec875bc80)

virtual dvs_ret get_coords(float *x_coords, float *y_coords, float *z_coords)=0

Get the coordinates for an unstructured mesh.



[DVS::IMeshChunk::get\_num\_variables](class_d_v_s_1_1_i_mesh_chunk.xhtml#a7ec07c07cdc908ec42b40e3c42c0a5f4)

virtual dvs_ret get_num_variables(uint32_t &amp;num_vars) const =0

Get the number of nodal variables this mesh chunk has data for.



[DVS::IMeshChunk::MeshType](class_d_v_s_1_1_i_mesh_chunk.xhtml#a8b7de1a1e47e05ab63f6bb41ccf5144a)

MeshType

The different mesh types allowed.

**Definition:** [dvs\_mesh\_chunk\_interface.h:64](dvs__mesh__chunk__interface_8h_source.xhtml#l00063)



[DVS::IMeshChunk::get\_coords\_curv](class_d_v_s_1_1_i_mesh_chunk.xhtml#a8da90ca355541bf876fa23ed267f94cb)

virtual dvs_ret get_coords_curv(float local_ijk_min[3], float local_ijk_max[3], float global_ijk_max[3], float *x_coords, float *y_coords, float *z_coords)=0

Get coordinate data for a structured curvilinear mesh.



[DVS::IMeshChunk::get\_coords\_parallele](class_d_v_s_1_1_i_mesh_chunk.xhtml#a959ecd945a3e46b25b4e816a35eb4123)

virtual dvs_ret get_coords_parallele(float origin[3], float dir_vec_i[3], float dir_vec_j[3], float dir_vec_k[3], float local_ijk_min[3], float local_ijk_max[3], float global_ijk_max[3], float *i_vals, float *j_vals, float *k_vals)=0

Get the ijk mesh information for structured parallelepiped mesh chunks.



[DVS::IMeshChunk::get\_type](class_d_v_s_1_1_i_mesh_chunk.xhtml#ab025d1550b2b3cd77faefecec5199852)

virtual MeshType get_type() const =0

Get the type of mesh chunk.



[DVS::IMeshChunk::get\_variable\_data](class_d_v_s_1_1_i_mesh_chunk.xhtml#ab72dfdd09b4258da7de7308ef48cb1fc)

virtual dvs_ret get_variable_data(uint32_t index, uint32_t *num_values, float *array)=0

Get the variable data by index.



[DVS::IMeshChunk::get\_coords\_parallele\_size](class_d_v_s_1_1_i_mesh_chunk.xhtml#abda21734e2f506b982b65007d17c92fd)

virtual dvs_ret get_coords_parallele_size(uint32_t &amp;i_vals_size, uint32_t &amp;j_vals_size, uint32_t &amp;k_vals_size)=0

Get the size of each ijk component for structured parallelpiped meshes.



[DVS::IMeshChunk::get\_object](class_d_v_s_1_1_i_mesh_chunk.xhtml#ae4ff384a5739e480c88097bef524d4bd)

virtual const DVS::IObject * get_object() const =0

Get the object definiton this mesh chunk is associated with.



[DVS::IMeshChunk::get\_variable](class_d_v_s_1_1_i_mesh_chunk.xhtml#afd77fb928baa23c8c453f897e082f880)

virtual const DVS::IVar * get_variable(uint32_t index) const =0

Get the variable definition associates with the nodal variable for this index.



[DVS::IObject](class_d_v_s_1_1_i_object.xhtml)

Interface for part/plot objects for DVS Reader API.

**Definition:** [dvs\_object\_interface.h:45](dvs__object__interface_8h_source.xhtml#l00044)



[DVS::IObject::get\_num\_metadata](class_d_v_s_1_1_i_object.xhtml#a31db3b716cc815c2c73f826f24384f6a)

virtual uint32_t get_num_metadata() const =0

Get the number of metadata objects.



[DVS::IObject::get\_metadata\_key](class_d_v_s_1_1_i_object.xhtml#a76a8b0bf7b55678cba9bcdb7e19c9a7f)

virtual const char * get_metadata_key(uint32_t index) const =0

Get the metadata key by index.



[DVS::IObject::get\_type](class_d_v_s_1_1_i_object.xhtml#a889c46624013cc3802c7164d153b95f6)

virtual ObjectDefType get_type() const =0

Get the type of the object.



[DVS::IObject::get\_dataset](class_d_v_s_1_1_i_object.xhtml#a9184ca61b90cf245c5f596f52756001b)

virtual const DVS::IDataset * get_dataset() const =0

Get the reference dataset for this object.



[DVS::IObject::get\_metadata\_value](class_d_v_s_1_1_i_object.xhtml#aa391aa339c696ddb5fe582eb59bb7197)

virtual const char * get_metadata_value(uint32_t index) const =0

Get the metadata value by index.



[DVS::IObject::PART](class_d_v_s_1_1_i_object.xhtml#aa897daa1f7d0467515fd108c29015348a8b2484e08a16329d2d91c18c254f5ca6)

@ PART

Type for a part object.

**Definition:** [dvs\_object\_interface.h:61](dvs__object__interface_8h_source.xhtml#l00061)



[DVS::IObject::PLOT](class_d_v_s_1_1_i_object.xhtml#aa897daa1f7d0467515fd108c29015348abe80fa1e67dae7efb56fdb2936914cae)

@ PLOT

Type for a plot object.

**Definition:** [dvs\_object\_interface.h:62](dvs__object__interface_8h_source.xhtml#l00062)



[DVS::IObject::get\_name](class_d_v_s_1_1_i_object.xhtml#ae8edeb61ff2b87d3f3ea9cd6519e73d5)

virtual const char * get_name() const =0

Get the name of the object.



[DVS::IQuery](class_d_v_s_1_1_i_query.xhtml)

The query interface for the DVS Reader API.

**Definition:** [dvs\_query\_interface.h:77](dvs__query__interface_8h_source.xhtml#l00076)



[DVS::IQuery::release](class_d_v_s_1_1_i_query.xhtml#a257f79d7de21658c07dc602dfa6bbf34)

virtual void release()=0

Release the memory of the query.



[DVS::IQuery::set\_logger](class_d_v_s_1_1_i_query.xhtml#ab6ce54c68281ea1676af650ebc5716a0)

virtual void set_logger(DVS::ILogger *logger)=0

Set the logger object.



[DVS::IVarHash::get\_var\_hash](class_d_v_s_1_1_i_var_hash.xhtml#a811a732d5542882667664d079dfdc486)

virtual dvs_ret get_var_hash(uint32_t index, char *hash) const =0

Get the hash of the variable data.



[DVS::IVarHash::get\_var\_hash\_size](class_d_v_s_1_1_i_var_hash.xhtml#acc08705e0bdfdea1d42aa358c6167b7d)

virtual uint32_t get_var_hash_size(uint32_t index) const =0

Get the size of the hash to use with IVarHash::get_var_hash()



[DVS::IVar](class_d_v_s_1_1_i_var.xhtml)

Interface for variables for the DVS Reader API.

**Definition:** [dvs\_var\_interface.h:45](dvs__var__interface_8h_source.xhtml#l00044)



[DVS::IVar::get\_metadata\_key](class_d_v_s_1_1_i_var.xhtml#a2b96533361edb6e64c7a4eb4a80d39f3)

virtual const char * get_metadata_key(uint32_t index) const =0

Get a metadata key based on the index.



[DVS::IVar::get\_num\_metadata](class_d_v_s_1_1_i_var.xhtml#a2deab60f72955106a4a4a3f67a0f295e)

virtual uint32_t get_num_metadata() const =0

Get the num metadata values on this var.



[DVS::IVar::get\_dataset](class_d_v_s_1_1_i_var.xhtml#a2e0600d91a89b39455ca1386998851c3)

virtual const DVS::IDataset * get_dataset() const =0

Get the reference dataset for this var.



[DVS::IVar::get\_unit\_label](class_d_v_s_1_1_i_var.xhtml#a4d5cad1da5b03c0a35d199de4c00799b)

virtual const char * get_unit_label() const =0

Get the unit label as string.



[DVS::IVar::get\_var\_location](class_d_v_s_1_1_i_var.xhtml#a7e97f43d3d1057267399c0e66deadd3d)

virtual dvs_var_location get_var_location() const =0

Get the var location.



[DVS::IVar::get\_metadata\_value](class_d_v_s_1_1_i_var.xhtml#a970de1a0e394ebc738e503f072c6fc1b)

virtual const char * get_metadata_value(uint32_t index) const =0

Get the metadata value base on the index.



[DVS::IVar::get\_float\_count\_per\_value](class_d_v_s_1_1_i_var.xhtml#a9dbdd84e6f6342deae82ede6dcf2156e)

virtual uint32_t get_float_count_per_value() const =0

Get the number of floats per value.



[DVS::IVar::get\_unit\_dimension](class_d_v_s_1_1_i_var.xhtml#ab5a4abf4b5a1d319f4cd3651f03df6b3)

virtual const char * get_unit_dimension() const =0

Get the unit dimensions as string.



[DVS::IVar::get\_var\_type](class_d_v_s_1_1_i_var.xhtml#ae837af2ee946d8f54695d1abf95c5cda)

virtual dvs_var_type get_var_type() const =0

Get the type of var.



[DVS::IVar::get\_name](class_d_v_s_1_1_i_var.xhtml#af9d82173f26ea832cd2d9dcc9742bd56)

virtual const char * get_name() const =0

Get the name of the variable.



[DVS::LoggerVerbose](class_d_v_s_1_1_logger_verbose.xhtml)

Logger class based on verbosity.

**Definition:** [logger\_verbose.h:40](logger__verbose_8h_source.xhtml#l00039)



[dvs\_query\_interface.h](dvs__query__interface_8h.xhtml)

DVS Reader API Query Interface.



[PARALLELEPIPED](dynamic__visualization__store__enums_8h.xhtml#a72a02f8c046b459abfa438d402dbba52a64849d874c1036d5e88f88e53706a76f)

@ PARALLELEPIPED

Parallepiped.

**Definition:** [dynamic\_visualization\_store\_enums.h:46](dynamic__visualization__store__enums_8h_source.xhtml#l00046)



[CURVILINEAR](dynamic__visualization__store__enums_8h.xhtml#a72a02f8c046b459abfa438d402dbba52acd60e0b216d803cc36de999bfbd2547b)

@ CURVILINEAR

Curvilinear.

**Definition:** [dynamic\_visualization\_store\_enums.h:47](dynamic__visualization__store__enums_8h_source.xhtml#l00047)



[DVS\_VERBOSE](dynamic__visualization__store__enums_8h.xhtml#aafcfd80cd55c92c53106bb56fdaf026da95f57c1525070266247b1a687f565f5b)

@ DVS_VERBOSE

Displays informational messages, warnings, errors.

**Definition:** [dynamic\_visualization\_store\_enums.h:86](dynamic__visualization__store__enums_8h_source.xhtml#l00086)



[PART](dynamic__visualization__store__enums_8h.xhtml#af4f0eba512eff253854b44d7ce078491a173f98c603042f6241b70157d56e385f)

@ PART

This is a variable for an entire part.

**Definition:** [dynamic\_visualization\_store\_enums.h:21](dynamic__visualization__store__enums_8h_source.xhtml#l00021)



[ELEMENT](dynamic__visualization__store__enums_8h.xhtml#af4f0eba512eff253854b44d7ce078491a3d10bfe84917127ab3347aa5c6309f33)

@ ELEMENT

This is a field variable per each element of a part.

**Definition:** [dynamic\_visualization\_store\_enums.h:20](dynamic__visualization__store__enums_8h_source.xhtml#l00020)



[NODE](dynamic__visualization__store__enums_8h.xhtml#af4f0eba512eff253854b44d7ce078491a59a889456a2d742fdca191dccb3e871d)

@ NODE

This is a field variable per each node of a part's mesh.

**Definition:** [dynamic\_visualization\_store\_enums.h:19](dynamic__visualization__store__enums_8h_source.xhtml#l00019)



[CASE](dynamic__visualization__store__enums_8h.xhtml#af4f0eba512eff253854b44d7ce078491a9c9b14644e9370719a51b7342bbc9c4d)

@ CASE

This is a variable for an entire case (i.e. dataset)

**Definition:** [dynamic\_visualization\_store\_enums.h:22](dynamic__visualization__store__enums_8h_source.xhtml#l00022)



[dvs\_ret](dynamic__visualization__store__error__codes_8h.xhtml#a1d7466ae72e89fe36cbf2408b4f7d9c1)

int32_t dvs_ret

Return value of methods, TODO.

**Definition:** [dynamic\_visualization\_store\_error\_codes.h:17](dynamic__visualization__store__error__codes_8h_source.xhtml#l00017)



[DVS\_NONE](dynamic__visualization__store__error__codes_8h.xhtml#a83b88ce16159d34fe5ce63e7024462a7)

\#define DVS_NONE

No detected error has occurred.

**Definition:** [dynamic\_visualization\_store\_error\_codes.h:81](dynamic__visualization__store__error__codes_8h_source.xhtml#l00081)



[logger\_verbose.h](logger__verbose_8h.xhtml)

Verbosity based logger for DVS.



[main](test__dvs__reader_8cpp.xhtml#a3c04138a5bfe5d72780bb7e82a18e627)

int main(int argc, char **argv)

Main method of test reader application.

**Definition:** [test\_dvs\_reader.cpp:93](test__dvs__reader_8cpp_source.xhtml#l00093)