// ############################## START FUNC ############################################ // With the fallowing routine, an ordination for how many steps the later procedure for chirality // checking will procede. The number of steps is analogue to how many consecutive advancements // atoms-to-atoms from all chiral atoms that are needed to get the priority of ALL relevant branches. function prepare_chir(atom_sorts, mconn, poschir) { var number_of_atoms=atom_sorts.length; var status_before = new List("empty", 0, atom_sorts); var latest_all_different=0; var tal1=new Array(number_of_atoms); var tal2=new Array(number_of_atoms); var helpstring=poschir.Display(); var chirlist=helpstring.split(" "); var w=0; var p=0; var n=0; var q=0; var logicalvv=false; // tal1 and tal2 is the value of each atom before, respective after, the atom-to-atom // value recombination. The resulting values say nothing about priority, but obviously // two atoms with the same numbers are likely to have been under the same influences // with respect to the reach for the number of loops. So if p has reached the value of 9 // all atoms have recieved influences from atoms as far as 10 atom-to-atoms neighbours // away. However, this may be incorrect for small influences. This problem can be managed // by enchancements of fraction decimals into the main number. for(n=0;n if(!status_before.Check(chirlist[w]) && logicalvv) // i.e. false before, true now. Along with potential chiral atoms, double bonds which to // theirs configuration cis-trans, depends on the same priority rules, are tested here. // In this function, opposed to the latter, information is exchanged over the central C=C. // It should not matter. // **************** for(w=0;w