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

perl namelist should allow both "false" and ".false." #1283

Closed
rljacob opened this issue Mar 27, 2017 · 8 comments · Fixed by #1395
Closed

perl namelist should allow both "false" and ".false." #1283

rljacob opened this issue Mar 27, 2017 · 8 comments · Fixed by #1395
Assignees

Comments

@rljacob
Copy link
Member

rljacob commented Mar 27, 2017

The MPAS-CICE buildnml is complaining about a logical a user is trying to set using user_nl_mpascice.

config_test_case_diag = false

'ERROR(Build::Namelist::_parse_next): expect a F90 constant for a namelist instead got: false

If they set it instead to

config_test_case_diag = .false.

There there's no error. But both "false" and ".false." should be allowed.

@mvertens
Copy link
Contributor

mvertens commented Mar 27, 2017 via email

@rljacob
Copy link
Member Author

rljacob commented Mar 27, 2017

Yes that buildnml is still in perl.

In namelist definition:

<entry id="config_test_case_diag" type="logical"
        category="io" group="io">
MISSING DESCRIPTION

Valid values: MISSING POSSIBLE VALUES
Default: Defined in namelist_defaults.xml
</entry>

In namelist_defaults: <config_test_case_diag>false</config_test_case_diag>

@mvertens
Copy link
Contributor

mvertens commented Mar 27, 2017 via email

@akturner
Copy link
Contributor

The fortran standard allows both false and .false. as valid fortran in namelists. The standard actually allows the "f" character (or "t" character for true obviously) followed by anything as a valid value.

@mvertens
Copy link
Contributor

mvertens commented Mar 27, 2017 via email

@rljacob rljacob changed the title Should namelist allow both "false" and ".false." perl namelist should allow both "false" and ".false." Mar 27, 2017
@rljacob
Copy link
Member Author

rljacob commented Mar 27, 2017

Does the python parser allow both "false" and ".false."?

@rljacob
Copy link
Member Author

rljacob commented Apr 7, 2017

Yes python allows both.

@erichlf erichlf self-assigned this Apr 20, 2017
@erichlf
Copy link

erichlf commented Apr 20, 2017

The issue appears to be in the regex used. I am testing a solution now.

erichlf pushed a commit that referenced this issue Apr 20, 2017
The Namelist.pm only allowed for .false. or .true. in namelist files. I have
fixed the regex to allow for dots or no dots.

Fixes #1283
@ghost ghost added the in progress label Apr 20, 2017
@ghost ghost removed the in progress label Apr 21, 2017
jgfouca pushed a commit that referenced this issue Jun 2, 2017
…1283)

Update config_compilers.xml and config_machinces.xml for ORNL CADES cluster

[BFB]

Conflicts:
	cime/cime_config/acme/machines/config_machines.xml
jgfouca pushed a commit that referenced this issue Feb 23, 2018
…1283)

Update config_compilers.xml and config_machinces.xml for ORNL CADES cluster

[BFB]

Conflicts:
	cime/cime_config/acme/machines/config_machines.xml
jgfouca pushed a commit that referenced this issue Mar 13, 2018
…1283)

Update config_compilers.xml and config_machinces.xml for ORNL CADES cluster

[BFB]

Conflicts:
	cime/cime_config/acme/machines/config_machines.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants