Skip to content

Commit

Permalink
clang-format new version
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Mar 11, 2024
1 parent 0d5efc6 commit 541f6de
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 40 deletions.
8 changes: 4 additions & 4 deletions packages/seacas/libraries/exoIIv2for32/src/exo_jack_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ void F2C(exginf, EXGINF)(int *idexo, char *info, int *ierr, int infolen)
for (i = 0; i < num_info; i++) { /* Put pointers to the info records in ptr
* array */
*(aptr + i) = sptr + i * (slen + 1);
} /* put ptr in string ptr
* array */
} /* put ptr in string ptr
* array */
*(aptr + i) = NULL; /* null out last pointer */

/* Do exodus call to get info records */
Expand Down Expand Up @@ -1273,8 +1273,8 @@ void F2C(exgpn, EXGPN)(int *idexo, int *obj_type, char *prop_names, int *ierr, i
int i;
for (i = 0; i < num_props; i++) {
*(aptr + i) = sptr + i * (slen + 1);
} /* put ptrs to staging space
* into ptr array */
} /* put ptrs to staging space
* into ptr array */
*(aptr + i) = NULL; /* set last pointer to null */

/* do Exodus C call to get property name records */
Expand Down
18 changes: 9 additions & 9 deletions packages/seacas/libraries/exodus/src/ex_get_cmap_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ int ex_get_cmap_params(int exoid, void_int *node_cmap_ids, void_int *node_cmap_n
((int *)node_cmap_node_cnts)[cnt] = 0;
}
} /* "for(cnt=0; cnt < num_n_comm_maps; cnt++)" */
} /* "if (node_cmap_node_cnts != NULL)" */
} /* "if (node_cmap_ids != NULL)" */
} /* "if (num_n_comm_maps > 0)" */
} /* End "if ((dimid = nc_inq_dimid(exoid, DIM_NUM_N_CMAPS)) != -1)" */
} /* "if (node_cmap_node_cnts != NULL)" */
} /* "if (node_cmap_ids != NULL)" */
} /* "if (num_n_comm_maps > 0)" */
} /* End "if ((dimid = nc_inq_dimid(exoid, DIM_NUM_N_CMAPS)) != -1)" */

/*****************************************************************************/
/*****************************************************************************/
Expand Down Expand Up @@ -368,10 +368,10 @@ int ex_get_cmap_params(int exoid, void_int *node_cmap_ids, void_int *node_cmap_n
((int *)elem_cmap_elem_cnts)[cnt] = 0;
}
} /* "for(cnt=0; cnt < num_e_comm_maps; cnt++)" */
} /* "if (elem_cmap_elem_cnts != NULL)" */
} /* "if (elem_cmap_ids != NULL)" */
} /* "if (num_e_comm_maps > 0)" */
} /* End "if ((dimid = nc_inq_dimid(exoid, DIM_NUM_E_CMAPS(processor))) !=
-1)" */
} /* "if (elem_cmap_elem_cnts != NULL)" */
} /* "if (elem_cmap_ids != NULL)" */
} /* "if (num_e_comm_maps > 0)" */
} /* End "if ((dimid = nc_inq_dimid(exoid, DIM_NUM_E_CMAPS(processor))) !=
-1)" */
EX_FUNC_LEAVE(EX_NOERR);
}
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,10 @@ static int define_truth_table(ex_entity_type obj_type, int exoid, int num_ent, i
}
exi_compress_variable(exoid, varid, 2);
}
} /* if */
} /* if */
k++; /* increment truth table pointer */
} /* for j */
} /* for i */
} /* for j */
} /* for i */
return NC_NOERR;
}

Expand Down
6 changes: 3 additions & 3 deletions packages/seacas/libraries/exodus/src/ex_put_truth_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ int ex_put_truth_table(int exoid, ex_entity_type obj_type, int num_blk, int num_
exi_compress_variable(exoid, varid, 2);
}
}
} /* if */
} /* if */
k++; /* increment element truth table pointer */
} /* for j */
} /* for i */
} /* for j */
} /* for i */

free(stat_vals);

Expand Down
14 changes: 7 additions & 7 deletions packages/seacas/libraries/exodus/test/rd_wt_mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ double my_timer(void)
#ifdef PARALLEL_AWARE_EXODUS
double t1 = MPI_Wtime();
#else
clock_t ctime = clock();
double t1 = ctime / (double)CLOCKS_PER_SEC;
clock_t ctime = clock();
double t1 = ctime / (double)CLOCKS_PER_SEC;
#endif
return t1;
}
Expand Down Expand Up @@ -136,8 +136,8 @@ int main(int argc, char **argv)
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &num_domains);
#else
rank = 0;
num_domains = 1;
rank = 0;
num_domains = 1;
#endif
/*
* Processor 0: parse the command line arguments.
Expand Down Expand Up @@ -654,7 +654,7 @@ int read_exo_mesh(char *file_name, int rank, int *num_dim, int num_domains, int
#ifdef PARALLEL_AWARE_EXODUS
MPI_Allreduce(&file_size, &glob_file_size, 1, MPI_LONG, MPI_SUM, MPI_COMM_WORLD);
#else
glob_file_size = file_size;
glob_file_size = file_size;
#endif

if (rank == 0) {
Expand Down Expand Up @@ -808,7 +808,7 @@ int write_exo_mesh(char *file_name, int rank, int num_dim, int num_domains, int
}
#else
err = ex_put_block(exoid[npd], EX_ELEM_BLOCK, EBLK_ID, "hex", num_elems, NUM_NODES_PER_ELEM,
0, 0, 0);
0, 0, 0);
#endif
if (err) {
printf("after ex_put_elem_block, error = %d\n", err);
Expand Down Expand Up @@ -1153,7 +1153,7 @@ int write_exo_mesh(char *file_name, int rank, int num_dim, int num_domains, int
#ifdef PARALLEL_AWARE_EXODUS
MPI_Allreduce(&file_size, &glob_file_size, 1, MPI_LONG, MPI_SUM, MPI_COMM_WORLD);
#else
glob_file_size = file_size;
glob_file_size = file_size;
#endif

if (rank == 0) {
Expand Down
22 changes: 11 additions & 11 deletions packages/seacas/libraries/nemesis/ne_ctest_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@
#include "ne_nemesisI.h"

/* Constants for init_global functions */
#define NNG 100
#define NEG 50
#define NEBG 5
#define NNG 100
#define NEG 50
#define NEBG 5
#define NEBCG 10
#define NNSG 2
#define NSSG 3
#define NNSG 2
#define NSSG 3

/* Constants for load-balance functions */
#define NPROC 10
#define NPROC 10
#define NPROCF NPROC
#define NINTN 200
#define NBORN 10
#define NEXTN 5
#define NINTE 100
#define NBORE 20
#define NINTN 200
#define NBORN 10
#define NEXTN 5
#define NINTE 100
#define NBORE 20
#define NNCMAP 4
#define NECMAP 2

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/suplib_c/XGetopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

///////////////////////////////////////////////////////////////////////////////
// if you are using precompiled headers then include this line:
//#include "stdafx.h"
// #include "stdafx.h"
///////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/libraries/suplib_cpp/GetLongOpt.C
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int GetLongOption::parse(int argc, char *const *argv)
}
}
} /* end if */
} /* end for */
} /* end for */

if (matchStatus == PartialMatch) {
int stat = setcell(pc, tmptoken, *(argv + 1), pname);
Expand Down Expand Up @@ -277,7 +277,7 @@ int GetLongOption::parse(char *const str, char *const p)
pc = t;
}
} /* end if */
} /* end for */
} /* end for */

if (matchStatus == PartialMatch) {
ladtoken = strtok(nullptr, " \t");
Expand Down

0 comments on commit 541f6de

Please sign in to comment.