Skip to content

Commit 75d4eb9

Browse files
authored
mppnccombine.c: move inline function above the calls to the function. (#31)
* Needed to support oneapi 2025 compiler.
1 parent 6d87686 commit 75d4eb9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/postprocessing/mppnccombine/mppnccombine.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@
134134
# define DEFAULT_SHUFFLE 1
135135
#endif
136136

137+
inline int min(int a, int b)
138+
{
139+
if (a<b) return a;
140+
return b;
141+
}
142+
137143
/* Information structure for a file */
138144
struct fileinfo
139145
{
@@ -722,12 +728,6 @@ void usage()
722728
}
723729

724730

725-
inline int min(int a, int b)
726-
{
727-
if (a<b) return a;
728-
return b;
729-
}
730-
731731
/* Open an input file and get some information about it, define the */
732732
/* structure of the output file if necessary, prepare to copy all the */
733733
/* variables for the current block to memory (and non-decomposed variables */

0 commit comments

Comments
 (0)