MESAHub / MESAHub/mesa

Unhelpful error message when setting logic variable incorrectly in inlist

Open
#437 3 comments 1 reaction 1 assignee Claimed by @pmocz View on GitHub
documentation enhancement rainy day
Dominant language
Fortran
Stars
249
Forks
82
Avg merge
1d 3h
Merged PRs (30d)
3

Description

While completing Earl Bellinger's Maxilab during the summer school, I incorrectly set the `relax_initial_z` and `relax_initial_y `variables (logic variables) to be floating point values in my inlist. I now know that this is because they are logic variables, but the following error was not very illustrative of the problem:

```
Failed while trying to read control namelist file: inlist_project
Perhaps the following runtime error message will help you find the problem.

At line 603 of file ../private/star_job_ctrls_io.f90
Fortran runtime error: Bad repeat count in item 3 of list input

Error termination. Backtrace:
#0 0x13b4ddde7
#1 0x13b4de997
#2 0x13b4df273
#3 0x13b5bfed3
#4 0x13b5c1183
#5 0x13b5c322f
#6 0x13b5c3f1f
#7 0x13b5cc1a3
#8 0x13b5cc457
#9 0x1035016cf
#10 0x103501b07
#11 0x103501d2b
#12 0x10350b0a3
#13 0x10351dad7
#14 0x10351d8e3
#15 0x102f80f83
#16 0x102f80fe7
```

Only raising this as an issue to see if is possible to improve the clarity of the error message.

**Inlists and models**
Here is an example of the section of the inlist that caused the error:
```f90
&star_job
pgstar_flag = .true.
pause_before_terminate = .true.

relax_initial_z = 0.01 ! should be true/false
relax_initial_y = 0.01 ! should be true/false
new_z = 0.001
new_y = 0.2483
/
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.