Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Port the symmetry programs from Fortran to C++ (drop the Fortran toolchain)

未关闭
#366 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
技术栈
cmake, cpp, fortran

调研方向

Start by reading the 17 files under src/apps/symmetry and identify the program entry points and callers described in the issue. Translate the routines into C++ under src/tdat, preserving algorithms, tolerances and output conventions, then compare results against the Fortran programs using the listed molecule, MO diagram and space group cases. Done means outputs agree within tolerance, callers use the library, and the Fortran sources and toolchain references are removed.

由索引模型根据 Issue 内容生成。

描述

src/apps/symmetry is the only Fortran left in ECCE: 17 files, about 7,100 lines (autosym from NWChem, the symmetry-operation and molecule generators symops, genmol, genmollat, gensym, dosymops, cleansym, the space-group tables spgen.f90 and spnames.f90). They build separate programs that the Builder, the calculation editor, the MO diagram and the reaction tools call through temporary files.

Why port

  • No Fortran compiler in any build. macOS links libgfortran and libquadmath statically, and the Windows client needs a Fortran-capable MinGW toolchain; this is the last awkward toolchain dependency for the native clients.
  • In-process calls instead of a program start and temporary files per call (the MO diagram calls symmetry often).
  • One language to debug; the symmetry traps found in the MO work (#132) sit in this code.

Method

  1. Translate function by function into C++ under src/tdat (no wx), no redesign: same algorithms, tolerances and output conventions.
  2. Differential test against the existing Fortran programs, kept as the reference during the port: every test and teaching molecule, the MO diagram goldens, and all 230 space groups in several settings. Point group, operations and symmetrized coordinates must agree within tolerance.
  3. Switch callers to the library; delete the Fortran and the Fortran toolchain (CMake, packaging, CI images) only after the outputs agree.

Outside libraries (spglib, libmsym) are not used: their tolerance behaviour differs from autosym's, which the MO diagram and the Builder's symmetrize depend on.

When: after the 9.3 queue, or earlier if a Windows or macOS client build is blocked by gfortran.

主要语言
C
星标
10
派生
8
平均合并
21 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FriendsofECCE/ECCE 的其他 Issue

查看 FriendsofECCE/ECCE 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。