Skip to content

Commit

Permalink
mppnccombine.c: move inline function above the calls to the function. (
Browse files Browse the repository at this point in the history
…#31)

* Needed to support oneapi 2025 compiler.
  • Loading branch information
harshula authored Mar 3, 2025
1 parent 6d87686 commit 75d4eb9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/postprocessing/mppnccombine/mppnccombine.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@
# define DEFAULT_SHUFFLE 1
#endif

inline int min(int a, int b)
{
if (a<b) return a;
return b;
}

/* Information structure for a file */
struct fileinfo
{
Expand Down Expand Up @@ -722,12 +728,6 @@ void usage()
}


inline int min(int a, int b)
{
if (a<b) return a;
return b;
}

/* Open an input file and get some information about it, define the */
/* structure of the output file if necessary, prepare to copy all the */
/* variables for the current block to memory (and non-decomposed variables */
Expand Down

0 comments on commit 75d4eb9

Please sign in to comment.