Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
O
openmc
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 70
    • Issues 70
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Shikhar Kumar
  • openmc
  • Merge Requests
  • !1105

Merged
Opened Oct 25, 2018 by Shikhar Kumar@shikhark
  • Report abuse
Report abuse

Move some initialization/finalization functions and eigenvalue-related functions to C++

  • Overview 0
  • Commits 20
  • Changes 47

Created by: paulromano

This PR moves many initialization/finalization functions to C++, including openmc_init, openmc_finalize, openmc_simulation_init, and openmc_simulation_finalize as well as some functions related to calculating k-effective. At this point, eigenvalue.F90 is almost completely converted. openmc_reset and openmc_hard_reset are also on the C++ side too. There's not too much else to say about this -- it was a pretty straightforward translation of code. There's a net reduction of about 1k lines of Fortran code and we're now down to 32.7k (version 0.10.0 was at about 50k).

I've also fixed two bugs in this PR:

  1. In my conversion of synchronize_bank to C++, the temporary bank (temp_sites) was allocated on the stack. Because it can potentially be quite large, it really needs to be on the heap in order to avoid a stack overflow. I've now changed it to a std::vector so that it appears on the heap.
  2. One version of read_attribute made an invalid use of strlen that is now fixed.
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: shikhark/openmc!1105