Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid initialization code #3

Open
davors opened this issue Sep 27, 2022 · 1 comment
Open

Grid initialization code #3

davors opened this issue Sep 27, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@davors
Copy link
Contributor

davors commented Sep 27, 2022

Would it be possible to provide some explanation as to why is the following code needed?

I find it strange that the first cell is initialized to a score of 50.

@davors davors added the question Further information is requested label Sep 27, 2022
@te2445
Copy link
Collaborator

te2445 commented Oct 15, 2022

If an atom coordinate is not inside docking site, then c_site check will fail.

int check = (c[0] > min[0] && c[0] < max[0] &&

If this check fails, value grid[0].point[classification] will be used, which is set to c_site penalty (50.0).

#define GET_GRID(gi) grid[(check>0)*gi].point[classification]

This is how c_site penalty is calculated at the moment. It would probably be faster to replace grid[0] with an if statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants