Commit graph

116 commits

Author SHA1 Message Date
Paul Romano
9c91bddf04
Migrate to SciPy sparse arrays (#3613) 2026-01-02 13:43:25 +02:00
Jonathan Shimwell
5d2b352025
f strings instead of .format for string editing (#2987) 2024-04-29 16:45:37 -05:00
Paul Romano
1a34ddf121
Fix CMFD to work with scipy 1.13 (#2936) 2024-04-03 20:54:13 -04:00
Jonathan Shimwell
9b7b33c7fa
Ruff comments on code (#2696)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-09-26 03:37:19 +00:00
Paul Romano
93a0855c7f
Fix test error and deprecation warnings from numpy 1.25 (#2573) 2023-06-22 14:26:22 -04:00
Paul Romano
9c646b3f32 Fix CMFDMesh.grid setter 2023-02-10 11:41:49 -06:00
Jonathan
04b5f4bc97 fixed minor typo in docs 2022-02-10 00:20:58 +00:00
Jonathan
2453b04b62 corrected multiline f strings 2021-07-31 22:33:45 +01:00
Jonathan
021aab9879 replaced .format with f strings 2021-07-29 20:28:51 +01:00
Jonathan Shimwell
192f4436a0 replaced .format with f string 2021-07-29 18:25:37 +01:00
Shikhar Kumar
ee077b4d61 Define cmfd_src on all procs 2021-02-09 13:47:04 -05:00
Shikhar Kumar
f83ab39b99 First pass at exposing rectilinear mesh through C API 2021-02-08 22:25:17 -05:00
Shikhar Kumar
e87e5ba3dc Move CMFD reweight to cpp, minor discrepancies in regression tests 2020-11-24 22:56:31 -05:00
Shikhar Kumar
2a8973ec42 Update batches accessor call in cmfd.py 2020-06-01 21:33:23 -04:00
Paul Romano
4943ae9307 Alphabetize import ordering (and use relative imports in a few places) 2020-04-06 15:16:09 -05:00
Paul Romano
e34a71b448 Remove unused imports across entire Python API 2020-03-31 18:11:31 -05:00
Paul Romano
dd472b9730 Changes in cmfd.py from PullRequest Inc. review 2020-03-23 20:44:34 -05:00
Paul Romano
cf6b67c05d Remove explicit inheritance from object for Python classes 2020-03-23 12:12:31 -05:00
Paul Romano
abe5596cb3
Merge pull request #1337 from shikhar413/cmfd-omp
OpenMP parallelism + minor code cleanup for CMFD
2019-12-17 22:28:46 -06:00
PullRequestOpen
6d0aa86cef Cosmetic fixes from PullRequest [2019-12-05] 2019-12-05 22:22:43 -06:00
Shikhar Kumar
362e4d16b4 Merge branch 'develop' of github.com:openmc-dev/openmc into cmfd-omp
Conflicts:
	openmc/cmfd.py
2019-11-04 22:52:16 -05:00
Shikhar Kumar
8e0b616075 Create use_all_threads variable instead of n_threads 2019-11-04 22:35:05 -05:00
Shikhar Kumar
0ce75aa21b Address Paul comments except setting threads as user param 2019-09-25 18:29:48 -04:00
Paul Romano
bbb0b78383 Rename openmc.capi -> openmc.lib 2019-09-13 10:38:26 -05:00
Shikhar Kumar
c6adc5f053 Separate variables defined on all processes vs just on master 2019-07-30 14:48:07 -04:00
shikhark
0f1b0a2ac6 Get proper indices for zero flux error 2019-07-23 21:18:16 +00:00
Shikhar Kumar
f3286c6601 Fix typo to make cmfd_on private 2019-07-23 15:17:59 -04:00
Shikhar Kumar
11b3a1fe7b Fix digitize bug 2019-07-23 11:27:22 -04:00
Shikhar Kumar
72bdcbb48b Thrown zero flux error only if sum over window is zero instead of at specific tally realization 2019-07-22 23:52:30 -04:00
Shikhar Kumar
093f90fc64 Change logic to run CMFD at cmfd_begin instead of tally_begin 2019-07-22 16:51:29 -04:00
Shikhar Kumar
596eab4bb6 Define default value for resnb when flux equals 0 2019-07-22 12:08:04 -04:00
Paul Romano
cb9d0a92b0
Merge pull request #1222 from shikhar413/cmfd-added-funcs
Added CMFD Functionality - Tally windows, statepoint write/restart, in-memory functions
2019-06-13 08:01:47 -05:00
Sterling Harper
9ddd8b3067 Change Python Mesh class to RegularMesh 2019-06-07 08:51:09 -04:00
Shikhar Kumar
0bfbd2c823 numpy errstate required for serr 2019-06-04 20:13:21 -04:00
Shikhar Kumar
c16154e84a Remove openmc_load_cmfd_tallies, address comments from @paulromano 2019-06-04 18:28:19 -04:00
Shikhar Kumar
c253a0e6f8 Missing underscore 2019-04-18 23:01:22 -04:00
Shikhar Kumar
f6bb00dc45 Add descriptions for new functions in cmfd CMFDRun class 2019-04-11 16:13:19 -04:00
Shikhar Kumar
055842b5cb Only call statepoint_write from C API if cmfd_run 2019-04-11 12:38:36 -04:00
Shikhar Kumar
c47f2d1c0a Remove os.path import 2019-04-08 13:28:34 -04:00
Shikhar Kumar
8a1bb58d49 Minor tabbing discrepancy 2019-04-04 15:46:11 -04:00
Shikhar Kumar
95948d66ec Print statement only on master 2019-03-12 21:20:27 -04:00
Shikhar Kumar
dcc4b47ea4 set_reference_params cannot be modified by user 2019-03-12 20:03:32 -04:00
Shikhar Kumar
5cd7db42fa Fix bug when resetting energy_filters from statepoint 2019-03-12 19:46:33 -04:00
Shikhar Kumar
6b8ad7e317 Make statepoint restart work with feedback on 2019-03-12 18:30:04 -04:00
Shikhar Kumar
bf4ae24639 Be able to read CMFD data and load CMFD tallies from statepoint file 2019-03-12 17:35:14 -04:00
Shikhar Kumar
8424a2c850 First pass at statepoint_write 2019-03-12 01:54:30 -04:00
Shikhar Kumar
f5d972475f Get rid of finally statement from run_in_memory function 2019-03-06 20:22:55 -05:00
Shikhar Kumar
a236d4c8e6 Replace mention of fixed window with rolling window 2019-03-06 19:26:19 -05:00
Shikhar Kumar
8917da499b Add tally window schemes, restructure run with run_in_memory and iter_batches, separate begin into tally_begin and feedback_begin 2019-03-06 18:50:02 -05:00
Shikhar Kumar
4094213dda Expose restart_run and statepoint_path through C API, get rid of uncessary lines in allocate_cmfd 2019-03-06 13:16:34 -05:00