I have this problem with the last versions of jmol and oracle-java :
Jmol Version: 14.2.2_2014.06.29  2014-06-28 18:17
java.vendor: Java: Oracle Corporation
java.version: Java 1.7.0_65
os.name: Linux
Access: ALL
memory: 24.2/122.7
processors available: 4

On 07/21/2014 07:32 AM, Robert Hanson wrote:
That script ran perfectly for me. Is this HTML5 or Java that you are having a problem with? Please download the latest at SourceForge (14.2.2) and see if this is a bug that was fixed.


On Sun, Jul 20, 2014 at 3:06 PM, Romuald Poteau <romuald.pot...@univ-tlse3.fr> wrote:
Dear Bob
A few years ago, you helped me to write a script aiming at displaying the facetting of nanoclusters. Unfortunately, it no longer works under the 14.1 versions of jmol and beyond.
The line at which the error seems to happen is indicated in the script reported below.
Your help would be appreciated, I am unable to understand the origin of this problem and to fix it by myself - if possible
Regards
Romuald

Var atoms = {Ruthenium}
Var n = atoms.length
Var minDistance = 3.3 # perhaps

for (Var i = 1; i <= n; i++) {
  Var a = atoms[i]
  for (Var j = i + 1; j <= n; j++) {
    Var b = atoms[j]
# THE ERROR SEEMS TO BE NEXT LINE, when I check the script, it returns "ERROR: invalid argument" and b.distance(a) is highlighted in red
     if (b.distance(a) < minDistance) {
       for (Var k = j + 1; k <= n; k++) {
         Var c = atoms[k]
         if (c.distance(a) < minDistance && c.distance(b) < minDistance) {
            draw ID @{"d" + i + j + k} @a @b @c
            color $@{"d" + i + j + k} grey translucent 0.2
     }
       }
     }
  }
}


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900


--

Gilard-Poteau Family
17, rue de l'Homme Armé
31000 Toulouse - France
+33(0)6 21 97 34 07

romuald.pot...@laposte.net

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to