Error when parsing the CP2K input file

47 views
Skip to first unread message

Torstein Fjermestad

unread,
May 11, 2020, 12:06:51 PM5/11/20
to cp2k
Dear all, 

I just tried to run a CP2K calculation on a new cluster. The version is 7.1 and the executable is cp2k.psmp
The job is a geometry optimization, and I use the same input file as I routinely use (running version 6.1 and executable cp2k.popt)
This time, however, I get the following error message:

 INPP_@SET: Invalid variable name in @SET directive in file:
system.inp  Line:     1
input/cp_parser_inpp_methods.F:307

The slurm output file (slurm-61201.out) with this message as well as the input file (system.inp) are attached. 

Do you have any idea of what is going on, or what I should do to fix the problem?

Thanks in advance for your help. 

Regards,
Torstein Fjermestad
 




slurm-61201.out
system.inp

Fabian Ducry

unread,
May 11, 2020, 12:59:12 PM5/11/20
to cp2k
Dear Torstein,

You cannot have a - (dash) in a variable name. Change
@SET CP2K-DATA ./cp2k-data
to @SET CP2K_DATA ./cp2k-data

and you should be fine.

Best,
Fabian

Torstein Fjermestad

unread,
May 11, 2020, 2:12:44 PM5/11/20
to cp2k
Dear Fabian,

Thanks, that solved the problem :)

Torstein

Tiziano Müller

unread,
May 12, 2020, 9:28:26 AM5/12/20
to cp...@googlegroups.com
(shameless plug follows) there's a cp2klint tool in the cp2k-input-tools
[1] which would tell you:

$ cp2klint system.inp
Syntax error: invalid variable name 'CP2K-DATA', in system.inp:
line 22: @SET CP2K-DATA ./cp2k-data

Best,
Tiziano

[1] https://github.com/cp2k/cp2k-input-tools
> --
> You received this message because you are subscribed to the Google
> Groups "cp2k" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cp2k+uns...@googlegroups.com
> <mailto:cp2k+uns...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/cp2k/c8e45121-027c-40e6-bb04-798a87452a81%40googlegroups.com
> <https://groups.google.com/d/msgid/cp2k/c8e45121-027c-40e6-bb04-798a87452a81%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Tiziano Müller
University of Zurich
Department of Chemistry
Winterthurerstrasse 190
CH-8057 Zürich

Tel: +41 44 63 54234
www.chem.uzh.ch
tiziano...@chem.uzh.ch
Reply all
Reply to author
Forward
0 new messages