example_mtl_3d.f90(94): error #6460: This is not a component name that is defined in the encompassing structure. [SECONDARY_REFL_AMP] p%secondary_refl_amp = sr(i) ----------^
- Dominant language
- Fortran
- Stars
- 23
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
I encountered an error.
When I run the Makefile in the example folder,I encountered the following error
example_mtl_3d.f90(94): error #6460: This is not a component name that is defined in the encompassing structure. [SECONDARY_REFL_AMP]
p%secondary_refl_amp = sr(i)
----------^
I found that in the file example/example_mtl_3d.f90, line 94, p%secondary_refl_amp = sr(i) is used. However, in src/module_geological_model_3d.f90, the type rgm3 does not define secondary_refl_amp.
After I added secondary_refl_amp to rgm3, the error disappeared. Could you tell me if this modification is correct?
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect example/example_mtl_3d.f90 at line 94 and the rgm3 definition in src/module_geological_model_3d.f90, then check the Makefile in the example folder to reproduce the compiler error. Confirm whether adding secondary_refl_amp to rgm3 is consistent with the surrounding fields and whether the example builds successfully afterward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fortran
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100