aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add special condition for hexagonal lattices.HEADmasterAndreas Grois2016-03-221-248/+265
| | | | | According to page 20 of T. Fritz, Molecular Architecture in Heteroepitaxially Grown Organic Thin Films one needs to treat hexagonal lattices specially, as for each sets of lattice vectors a1,a2 there exists a fully equivalent set given by a1'=a1, and a2'=a1-a2. The latest change of the code checks if α is exactly a multiple of 60 degrees (except for the clearly nonsensical 180 and 0 degrees) and if that's the case, runs the main loop twice, with alpha set to 60° and 120°. By this, the mirror symmetry of the hexagonal lattice is preserved.
* Angleset: Change add behaviour to not run combine()Andreas Grois2015-11-273-7/+21
| | | | | The most often used command for angleset in this tool is the add function. If at the end of every add the combine() function is being called, a lot of CPU time is wasted. Add now doesn't call combine(), and marks the angleset as dirty instead. All functions that require a clean angleset now check if it's dirty, and if yes call combine().
* Add angle sets (disjoint ranges) - initial supportAndreas Grois2015-11-109-262/+745
| | | | | | | By adding a new angleset class, things get much easier to read. Also, the part of the previous commit that dealt with combining the individual ranges was kind of stupid. Things missing: o) functions to remove angle ranges from a set o) deferred add functions, that allow adding multiple ranges without calling the O(n²) function angleset::combine() in between.
* Combine and sort resultsAndreas Grois2015-11-064-4/+171
| | | | | | This change introduces (experimental and not very clean) combining of results. It might be worth writing a disjoint angle range class to get cleaner code here, as the while loops at the end are quite far from being beautiful. In addition the output ranges are sorted by their lower border. I'm using Lambda expressions for this, so C+11 is required. Also, this is currently completely untested.
* Readability improvementsAndreas Grois2015-11-061-92/+109
| | | | | As the most important part of the formulas are the signs, factorizing greatly helps readability. Also, some other polishing.
* Fix year for all source code files.Andreas Grois2015-11-045-5/+5
| | | | An obvious copy&paste error. Probably not the only one in this program...
* Update ReadmeAndreas Grois2015-11-041-1/+1
| | | Corrected the year in the copyright line. It's 2015 of course.
* Update README.mdAndreas Grois2015-11-041-2/+5
|
* Update README.mdAndreas Grois2015-11-031-1/+1
|
* Github... I'm not yet used to it.Andreas Grois2015-11-038-4/+804
|
* Merge branch 'master' of github.com:soulsource/LatticeMatchAndreas Grois2015-11-032-0/+345
|\ | | | | | | Made the mistake of using the webinterface to create a remote branch...
| * Initial commitAndreas Grois2015-11-032-0/+345
|
* Initial Commit. Still full of bugs, and not very pretty.Andreas Grois2015-11-038-0/+45