Skip to content

Conversation

@gsvic
Copy link
Contributor

@gsvic gsvic commented May 19, 2020

Replace getCoordinates with setBuffer for dimensions

@gsvic gsvic requested a review from Shelnutt2 May 19, 2020 14:36
try (Domain domain = schema.getDomain();
NativeArray domainArray =
new NativeArray(ctx, 2 * (int) domain.getRank(), domain.getType())) {
new NativeArray(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not right, you don't need domain.rank() here. If the second parameter is "elements" then just 2 is enough.

try (Domain domain = schema.getDomain();
NativeArray domainArray =
new NativeArray(ctx, 2 * (int) domain.getRank(), domain.getType())) {
new NativeArray(ctx, 2 * (int) domain.getRank(), domain.getDimension(name).getType())) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@gsvic gsvic force-pushed the victorgiannakouris/remove_get_coords branch 2 times, most recently from a8da75b to 829f016 Compare May 19, 2020 15:15
@gsvic gsvic force-pushed the victorgiannakouris/remove_get_coords branch from 829f016 to dd1aa61 Compare May 20, 2020 13:09
@gsvic gsvic merged commit dce18b4 into master May 20, 2020
@gsvic gsvic deleted the victorgiannakouris/remove_get_coords branch May 20, 2020 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants