@@ -46,10 +46,13 @@ Type Definitions
4646Functions
4747---------
4848
49- .. c :function :: void openmc_calculate_volumes ()
49+ .. c :function :: int openmc_calculate_volumes ()
5050
5151 Run a stochastic volume calculation
5252
53+ :return: Return status (negative if an error occurred)
54+ :rtype: int
55+
5356.. c:function:: int openmc_cell_get_fill(int32_t index, int* type, int32_t** indices, int32_t* n)
5457
5558 Get the fill for a cell
@@ -192,11 +195,14 @@ Functions
192195 :return: Return status (negative if an error occurred)
193196 :rtype: int
194197
195- .. c:function:: void openmc_finalize()
198+ .. c:function:: int openmc_finalize()
196199
197200 Finalize a simulation
198201
199- .. c:function:: void openmc_find(double* xyz, int rtype, int32_t* id, int32_t* instance)
202+ :return: Return status (negative if an error occurs)
203+ :rtype: int
204+
205+ .. c:function:: int openmc_find(double* xyz, int rtype, int32_t* id, int32_t* instance)
200206
201207 Determine the ID of the cell/material containing a given point
202208
@@ -207,6 +213,8 @@ Functions
207213 occurs, the ID is -1.
208214 :param int32_t* instance: If a cell is repeated in the geometry, the instance
209215 of the cell that was found and zero otherwise.
216+ :return: Return status (negative if an error occurs)
217+ :rtype: int
210218
211219.. c:function:: int openmc_get_cell_index(int32_t id, int32_t* index)
212220
@@ -266,11 +274,14 @@ Functions
266274 :return: Return status (negative if an error occurs)
267275 :rtype: int
268276
269- .. c:function:: void openmc_hard_reset()
277+ .. c:function:: int openmc_hard_reset()
270278
271279 Reset tallies, timers, and pseudo-random number generator state
272280
273- .. c:function:: void openmc_init(int argc, char** argv, const void* intracomm)
281+ :return: Return status (negative if an error occurs)
282+ :rtype: int
283+
284+ .. c:function:: int openmc_init(int argc, char** argv, const void* intracomm)
274285
275286 Initialize OpenMC
276287
@@ -279,6 +290,8 @@ Functions
279290 :param intracomm: MPI intracommunicator. If MPI is not being used, a null
280291 pointer should be passed.
281292 :type intracomm: const void*
293+ :return: Return status (negative if an error occurs)
294+ :rtype: int
282295
283296.. c:function:: int openmc_load_nuclide(char name[])
284297
@@ -396,26 +409,41 @@ Functions
396409 :return: Return status (negative if an error occurs)
397410 :rtype: int
398411
399- .. c:function:: void openmc_plot_geometry()
412+ .. c:function:: int openmc_plot_geometry()
400413
401414 Run plotting mode.
402415
403- .. c:function:: void openmc_reset()
416+ :return: Return status (negative if an error occurs)
417+ :rtype: int
418+
419+ .. c:function:: int openmc_reset()
404420
405421 Resets all tally scores
406422
407- .. c:function:: void openmc_run()
423+ :return: Return status (negative if an error occurs)
424+ :rtype: int
425+
426+ .. c:function:: int openmc_run()
408427
409428 Run a simulation
410429
411- .. c:function:: void openmc_simulation_finalize()
430+ :return: Return status (negative if an error occurs)
431+ :rtype: int
432+
433+ .. c:function:: int openmc_simulation_finalize()
412434
413435 Finalize a simulation.
414436
415- .. c:function:: void openmc_simulation_init()
437+ :return: Return status (negative if an error occurs)
438+ :rtype: int
439+
440+ .. c:function:: int openmc_simulation_init()
416441
417442 Initialize a simulation. Must be called after openmc_init().
418443
444+ :return: Return status (negative if an error occurs)
445+ :rtype: int
446+
419447.. c:function:: int openmc_source_bank(struct Bank** ptr, int64_t* n)
420448
421449 Return a pointer to the source bank array.
@@ -435,13 +463,15 @@ Functions
435463 :return: Return status (negative if an error occurred)
436464 :rtype: int
437465
438- .. c:function:: void openmc_statepoint_write(const char filename[])
466+ .. c:function:: int openmc_statepoint_write(const char filename[])
439467
440468 Write a statepoint file
441469
442470 :param filename: Name of file to create. If a null pointer is passed, a
443471 filename is assigned automatically.
444472 :type filename: const char[]
473+ :return: Return status (negative if an error occurs)
474+ :rtype: int
445475
446476.. c:function:: int openmc_tally_get_id(int32_t index, int32_t* id)
447477
0 commit comments