zsh-users
 help / color / mirror / code / Atom feed
* zpasesopts problem
@ 2021-06-02 16:14 Roger Mason
  2021-06-02 17:00 ` Stephane Chazelas
  0 siblings, 1 reply; 5+ messages in thread
From: Roger Mason @ 2021-06-02 16:14 UTC (permalink / raw)
  To: zsh-users

Hello,

I have this in a script:

if [[ $spsource == SpeciesGenerated ]];then
zparseopts -D -E - -symbol+:=chemsyms -rmt+:=rmts -nocc+:=noccs -vstate+:=vstates
echo "Parsing species options."
fi

if [[ ${#chemsyms} -ne ${#rmts} ]] || [[ ${#chemsyms} -ne ${#noccs} ]] || [[ ${#chemsyms} -ne ${#vstates} ]];then
    echo "The numbers of chemical chemsyms, RMTs, occupation numbers and valence states do not match."
    echo "#chemsyms = ${#chemsyms}, #rmts = ${#rmts}, #noccs = ${#noccs}, #vstates = ${#vstates}"
    echo "Check your command line.  Exiting."
    exit -1
fi


Given this command line:

rm -rf *20210602-*;./GenerateElkJX.sh filmperthite --tasks 0 --spsource \
SpeciesGenerated --symbol Si --rmt 1.55 --nocc 7 --vstates '1112'

I get:

Parsing species options.
The numbers of chemical chemsyms, RMTs, occupation numbers and valence states do not match.
#chemsyms = 0, #rmts = 2, #noccs = 2, #vstates = 2
Check your command line.  Exiting.

I don't understand why the value given for chemsyms (--symbol Si) is
unrecognised.

Thanks for any help in making this work.

Roger


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-03  9:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02 16:14 zpasesopts problem Roger Mason
2021-06-02 17:00 ` Stephane Chazelas
2021-06-02 17:23   ` Roger Mason
2021-06-02 20:30     ` gammafunction
2021-06-03  9:24       ` Roger Mason

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).