File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
packages/seacas/libraries Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,17 @@ namespace Ioss {
3535 enum class ElementShape : unsigned int ;
3636} // namespace Ioss
3737
38- [[noreturn]] inline void IOSS_ERROR (const std::string &errmsg)
38+ [[noreturn]] inline void IOSS_ERROR (const std::string &errmsg)
3939{
4040#if defined(SEACAS_HAVE_MPI)
4141 std::cerr " ERROR: " << errmsg << " \n " ;
4242 MPI_Abort (MPI_COMM_WORLD);
4343#else
44- throw std::runtime_error (errmsg);
44+ throw std::runtime_error (errmsg);
4545#endif
4646}
4747
48- [[noreturn]] inline void IOSS_ERROR (const std::ostringstream &errmsg)
49- {
50- IOSS_ERROR (errmsg.str ());
51- }
48+ [[noreturn]] inline void IOSS_ERROR (const std::ostringstream &errmsg) { IOSS_ERROR (errmsg.str ()); }
5249
5350// We have been relying on the assumption that calling `.data()` on an empty vector
5451// will return `nullptr`. However, according to cppreference (based on the standard):
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ void formlist(int64_t *ids, int64_t *len)
1616 const char * seq_sep = ", " ;
1717
1818 printf ("\t\t" );
19- int64_t num = 0 ;
19+ int64_t num = 0 ;
2020 while (num < * len ) {
2121 if (num == 0 ) {
2222 printf ("%" PRId64 "" , ids [num ]);
2323 }
2424 else {
2525 printf ("%s%" PRId64 "" , seq_sep , ids [num ]);
2626 }
27-
27+
2828 int64_t begin = ids [num ]; // first id in range of 1 or more ids
2929 int64_t previous = ids [num ]; // last id in range of 1 or more ids
3030 // Gather a range or single value... (begin .. previous)
You can’t perform that action at this time.
0 commit comments