Skip to content

Commit

Permalink
Format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel committed Jul 24, 2024
1 parent 1d26d98 commit 01eafec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion driver/gmsh_io.C
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ void tioga_gmsh_reader_(
cout << " Node data read from file \"" << gmsh_filename << "\"\n\n";
cout << " Number of nodes = " << node_num << "\n";
cout << " Spatial dimension = " << dim << "\n";
cout << " Elements counts: " << "\n";
cout << " Elements counts: "
<< "\n";
for (int i = 1; i < TYPE_NUM_MAX; i++)
printf(" %s %d\n", TYPE_NAME[i], elem_counts[i]);
cout << endl;
Expand Down
3 changes: 2 additions & 1 deletion driver/gmsh_test.C
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ void test()
cout << " \n Node data read from file \"" << gmsh_filename << "\"\n\n";
cout << " Number of nodes = " << node_num << "\n";
cout << " Spatial dimension = " << dim << "\n";
cout << " Number of elements: " << "\n";
cout << " Number of elements: "
<< "\n";
for (int i = 1; i < TYPE_NUM_MAX; i++) {
printf(" %s %d\n", TYPE_NAME[i], elem_counts[i]);
}
Expand Down
6 changes: 3 additions & 3 deletions driver/gpu_test.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ void print_gpu_info()
std::cout << "BEGIN TEST print_gpu_info" << std::endl;
#ifdef TIOGA_HAS_GPU
#if defined(CUDA_VERSION)
std::cout << "CUDA configuration: " << "CUDA_VERSION: " << CUDA_VERSION
<< " " << CUDA_VERSION / 1000 << " " << (CUDA_VERSION % 1000) / 10
<< std::endl;
std::cout << "CUDA configuration: "
<< "CUDA_VERSION: " << CUDA_VERSION << " " << CUDA_VERSION / 1000
<< " " << (CUDA_VERSION % 1000) / 10 << std::endl;
#endif
int ndevices;
gpu::gpuDeviceProp_t dev;
Expand Down
3 changes: 2 additions & 1 deletion src/MeshBlock.C
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,8 @@ void MeshBlock::create_hex_cell_map(void)
//
if (uindx) TIOGA_FREE(uindx);
uindx = (int*)malloc(sizeof(int) * idims[0] * idims[1] * idims[2]);
for (int i = 0; i < idims[0] * idims[1] * idims[2]; uindx[i++] = -1);
for (int i = 0; i < idims[0] * idims[1] * idims[2]; uindx[i++] = -1)
;
//
for (int i = 0; i < nc[0]; i++) {
double xc[3];
Expand Down

0 comments on commit 01eafec

Please sign in to comment.