Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct vectorisation errors recently introduced
(1) vec_load cannot be used on constants, it can only be used to access array elements. Replacing UseVectors by False is just a band aid. vec_load was attached to a routine defining and setting a variable; really, it should be attached to a routine accessing array elements, but Kranc doesn't use such an abstraction yet.(2) ToReal is introduced, but must be removed again for integer expressions such as the conditions controlling if statements. I added band-aid code to Conditional[] to remove it. The vectorization routines already handle IfThen, Pow etc., but Conditional isn't visible to them.
- Loading branch information
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters