Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified src/mcnp_library.cpp to properly read the directory entries #30

Merged
merged 6 commits into from
Feb 5, 2024

Commits on Dec 19, 2023

  1. modified src/mcnp_library.cpp to properly read the directory entries

    According to an MCNP document,
    https://mcnp.lanl.gov/pdf_files/TechReport_2022_LANL_LA-UR-22-30006Rev.1_KuleszaAdamsEtAl.pdf
    the lines below "DIRECTORY" (case insensitive) consist of
    "seven- to eleven-entry description of each table".
    The present implementation, however, seems to assume eleven
    entries, and therefore when it encounters a seven-entry line,
    it coredumps in e.g. trying to convert a string to double
    in mcnp_library.cpp:191
    
    To properly read these variable-entry-number lines, a modification
    was made by utilizing std::getline(); the input stream is read
    line-by-line and then decomposed.
    Kazuyoshi Furutaka (work) committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    65c2b1c View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2024

  1. Eliminate "goto LINE_LOOP:"

    furutaka committed Jan 2, 2024
    Configuration menu
    Copy the full SHA
    da91ee1 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2024

  1. Configuration menu
    Copy the full SHA
    6808efd View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2024

  1. Configuration menu
    Copy the full SHA
    6e39b34 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Configuration menu
    Copy the full SHA
    07fb5b4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0cf67f1 View commit details
    Browse the repository at this point in the history