Commit graph

82 commits

Author SHA1 Message Date
Alex Lindsay
7c01594111 Add init methods (with order) for capi expansion filters 2018-05-22 08:12:49 -06:00
Alex Lindsay
85e6eb9616 hitting out of bounds error in fortran 2018-05-21 15:22:06 -06:00
Alex Lindsay
411fd288ea Expand C API, targeting FETs 2018-05-21 15:22:06 -06:00
Adam G Nelson
890a1b4f55 Moved math python api to point to the C++ and simplified the fortran methods 2018-05-18 19:07:34 -04:00
Adam G Nelson
38c13994bc Implementing comments from @paulromano, @smharper, and @giudgiud. A few remain open, will close in a day or two after some more GitHub discussion 2018-05-16 21:25:29 -04:00
Adam G Nelson
d7b20fb51e final preps for a PR 2018-05-13 19:21:36 -04:00
Adam G Nelson
a6e75c3509 Cleaned up the optional parameters interface of rotate_angle 2018-05-13 06:44:48 -04:00
Adam G Nelson
a73f633d24 Converted calc_rn and calc_pn to provide all values at once instead of only for the requested value of n. Also converted calc_pn to use the recursive definition of the legendre polys 2018-05-12 15:43:05 -04:00
Adam G Nelson
c65817a0d3 Merged with upstream MGXS Expansion changes and Zernike normalization change 2018-05-11 05:02:07 -04:00
Paul Romano
d5bc4dacae
Merge pull request #1001 from nelsonag/mgxs_expansion_with_tests
Incorporation of Expansion filters in to MGXS
2018-05-08 14:58:41 -05:00
Adam G Nelson
468126f8c4 Added in Zernike polynomials to C++ code 2018-05-06 20:14:54 -04:00
Adam G Nelson
2000b4f998 Merging with the upstream, especially including hdf5 C++ changes 2018-05-06 07:16:21 -04:00
Paul Romano
6b1c0f907f Fix openmc.capi.init() 2018-05-02 06:21:09 -05:00
Paul Romano
9d5275ca26 Support passing command-line arguments in openmc.capi.init() 2018-05-01 22:22:18 -05:00
Adam G Nelson
15b6b1d4ee CPPized the Pn and Rn functions 2018-04-30 16:13:11 -04:00
Adam G Nelson
0e3194315a C++ized t_percentile 2018-04-30 15:41:20 -04:00
Adam G Nelson
8e61254e6b Added C++ math functions, now to incorporate them one by one.... 2018-04-30 15:33:36 -04:00
Adam G Nelson
7fb5449ca1 implemented python interface and tests of math.F90 2018-04-30 08:54:29 -04:00
Adam G Nelson
600969ce2b Exposed math.F90 to C and then created python wrappers around these functions. Seem to work 2018-04-29 06:35:56 -04:00
Adam G Nelson
1d2ebb71f8 Implemented Expansion filters in to the MGXS classes and removed the old score-based expansions 2018-04-27 19:45:38 -04:00
Paul Romano
0a8f5977ed Be more consistent with C API function return values 2018-04-25 15:07:40 -05:00
Paul Romano
da4999f116 Move reading command-line arguments to C++ side 2018-04-25 12:51:45 -05:00
Paul Romano
44ff22dc14 Convert write_source_bank to C++, move some MPI initialization over too 2018-04-24 06:32:18 -05:00
Paul Romano
9b8cb2e0f1 Have openmc_init take a MPI_Comm* 2018-04-24 06:32:18 -05:00
Paul Romano
14455dc43e Write main() from C++ 2018-04-24 06:32:18 -05:00
Paul Romano
39554e4614 Allow tallies to be activated from C API (mostly for CMFD) 2018-04-18 15:54:04 -05:00
Paul Romano
8886313c93 Add description of openmc.capi.Mesh attributes in docstring 2018-04-18 07:17:02 -05:00
Paul Romano
c78d296bf6 Have openmc_next_batch return an actual error 2018-04-11 13:23:54 -05:00
Paul Romano
f485693fa0 Support void materials in C API Python bindings 2018-04-11 13:23:54 -05:00
Paul Romano
8a6c6d1398 Add C API bindings to create/modify meshes (and filters) 2018-04-11 13:23:54 -05:00
Paul Romano
206166cc41 Remove redundant surface tally subroutine. Fix broken tests 2018-03-19 17:50:32 -05:00
Paul Romano
9e912a933d Support energyout filters in C API 2018-03-15 11:37:49 -05:00
Paul Romano
d981b34dc1 Remove FutureWarning for capi import 2018-02-21 07:00:20 -06:00
Paul Romano
cba083103c Use default argument of max() in capi bindings 2018-02-06 07:29:39 -05:00
Paul Romano
d3d6dc87dc Remove a few more __future__ imports. Use collections.abc 2018-02-05 23:14:30 -05:00
Paul Romano
deab4b3d33 Use empty-argument form of super() 2018-02-05 23:14:30 -05:00
Sterling Harper
48ac683a0c Remove C++/Fortran interoperable "seed" 2018-01-31 18:11:14 -05:00
Paul Romano
7e19b82f93 Update C API documentation 2017-12-29 17:20:02 -06:00
Paul Romano
08bf32e1ae Throw exception if next_batch() is called before simulation is initialized 2017-12-15 11:38:28 +07:00
Paul Romano
8e1b8d6264 Make capi.keff() usable during inactive and active batches 2017-12-15 11:05:46 +07:00
Paul Romano
7b56bcead6 Add unit tests for openmc.capi 2017-12-14 09:52:05 +07:00
Paul Romano
5116916d7a Fix capi.Cell.__new__ 2017-12-11 13:01:18 +07:00
Paul Romano
4fbd9d75c2 Allow openmc.capi.statepoint_write to pass filename 2017-12-11 13:01:18 +07:00
Paul Romano
402b09ee3d Add Python bindings for global num_realizations. Fix active rate. 2017-12-11 13:01:18 +07:00
Paul Romano
198df07311 Add subdivide convenience function 2017-12-11 13:01:18 +07:00
Paul Romano
671db024db Fix bugs with statepoint loading. Add properties to capi.Tally. 2017-12-11 13:01:17 +07:00
Paul Romano
9ddc7316e4 Add simulation_init/finalize, iter_batches, source_bank in openmc.capi 2017-12-11 13:01:17 +07:00
Paul Romano
f14957940d Add openmc.capi.global_tallies() 2017-12-11 13:01:17 +07:00
Paul Romano
3af20e8faf Fix openmc.capi.Tally.scores getter 2017-12-11 13:01:17 +07:00
Paul Romano
e27e1f3003 Use class attribute in capi.Filter.__new__ to avoid the need to define __new__
in subclasses.
2017-10-11 14:05:28 -05:00