• R/O
  • SSH
  • HTTPS

molby: Commit


Commit MetaInfo

Revision602 (tree)
Time2016-09-07 19:12:44
Authortoshinagata1964

Log Message

cubegen now accepts mo=0, which means 'arbitrary vector'

Change Summary

Incremental Difference

--- trunk/MolLib/Ruby_bind/ruby_bind.c (revision 601)
+++ trunk/MolLib/Ruby_bind/ruby_bind.c (revision 602)
@@ -10251,8 +10251,8 @@
1025110251
1025210252 /* Set up parameters */
1025310253 mono = NUM2INT(rb_Integer(mval));
10254- if (mono <= 0 || mono > mol->bset->ncomps)
10255- rb_raise(rb_eMolbyError, "The MO number (%d) is out of range (should be 1..%d)", mono, mol->bset->ncomps);
10254+ if (mono < 0 || mono > mol->bset->ncomps)
10255+ rb_raise(rb_eMolbyError, "The MO number (%d) is out of range (should be 1..%d, or 0 as 'arbitrary vector')", mono, mol->bset->ncomps);
1025610256 if (RTEST(bval)) {
1025710257 if (mol->bset->rflag != 0)
1025810258 rb_raise(rb_eMolbyError, "Beta MO is requested but not present");
Show on old repository browser