Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
d8afcd61
Commit
d8afcd61
authored
Oct 16, 2020
by
Uwe Schulzweida
Browse files
Renamed storeWeightLinks to store_weightlinks
parent
0e2fe293
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/remap_bilinear.cc
View file @
d8afcd61
...
...
@@ -221,7 +221,7 @@ remapBilinearWeights(RemapSearch &rsearch, RemapVars &rv)
{
// Successfully found iw,jw - compute weights
bilinearSetWeights
(
iw
,
jw
,
wgts
);
store
W
eight
L
inks
(
0
,
4
,
src_add
,
wgts
,
tgt_cell_add
,
weightLinks
);
store
_w
eight
l
inks
(
0
,
4
,
src_add
,
wgts
,
tgt_cell_add
,
weightLinks
);
}
else
{
...
...
@@ -240,7 +240,7 @@ remapBilinearWeights(RemapSearch &rsearch, RemapVars &rv)
{
tgt_grid
->
cell_frac
[
tgt_cell_add
]
=
1.
;
renormalizeWeights
(
src_lats
,
wgts
);
store
W
eight
L
inks
(
0
,
4
,
src_add
,
wgts
,
tgt_cell_add
,
weightLinks
);
store
_w
eight
l
inks
(
0
,
4
,
src_add
,
wgts
,
tgt_cell_add
,
weightLinks
);
}
}
}
...
...
src/remap_conserv.cc
View file @
d8afcd61
...
...
@@ -717,7 +717,7 @@ remapConservWeights(RemapSearch &rsearch, RemapVars &rv)
tgt_grid
->
cell_frac
[
tgt_cell_add
]
=
varraySum
(
num_weights
,
partial_weights
);
store
W
eight
L
inks
(
1
,
num_weights
,
srch_add
[
ompthID
].
data
(),
partial_weights
.
data
(),
tgt_cell_add
,
weightLinks
);
store
_w
eight
l
inks
(
1
,
num_weights
,
srch_add
[
ompthID
].
data
(),
partial_weights
.
data
(),
tgt_cell_add
,
weightLinks
);
}
progress
::
update
(
0
,
1
,
1
);
...
...
src/remap_distwgt.cc
View file @
d8afcd61
...
...
@@ -82,7 +82,7 @@ remapDistwgtWeights(size_t numNeighbors, RemapSearch &rsearch, RemapVars &rv)
if
(
knnWeights
[
ompthID
].
m_mask
[
n
])
tgt_grid
->
cell_frac
[
tgt_cell_add
]
=
1.0
;
// Store the link
store
W
eight
L
inks
(
0
,
nadds
,
knnWeights
[
ompthID
].
m_addr
.
data
(),
knnWeights
[
ompthID
].
m_dist
.
data
(),
tgt_cell_add
,
weightLinks
);
store
_w
eight
l
inks
(
0
,
nadds
,
knnWeights
[
ompthID
].
m_addr
.
data
(),
knnWeights
[
ompthID
].
m_dist
.
data
(),
tgt_cell_add
,
weightLinks
);
}
progress
::
update
(
0
,
1
,
1
);
...
...
src/remap_store_link.cc
View file @
d8afcd61
...
...
@@ -154,8 +154,8 @@ sort_add_and_wgts_bicubic(size_t *src_add, double (&weights)[4][4])
}
void
store
W
eight
L
inks
(
int
lalloc
,
size_t
numWeights
,
size_t
*
srch_add
,
double
*
weights
,
size_t
cell_add
,
std
::
vector
<
WeightLinks
>
&
weightLinks
)
store
_w
eight
l
inks
(
int
lalloc
,
size_t
numWeights
,
size_t
*
srch_add
,
double
*
weights
,
size_t
cell_add
,
std
::
vector
<
WeightLinks
>
&
weightLinks
)
{
weightLinks
[
cell_add
].
nlinks
=
0
;
weightLinks
[
cell_add
].
offset
=
0
;
...
...
src/remap_store_link.h
View file @
d8afcd61
...
...
@@ -50,8 +50,8 @@ struct WeightLinks4
void
weightLinksAlloc
(
size_t
numNeighbors
,
size_t
gridSize
,
std
::
vector
<
WeightLinks
>
&
weightLinks
);
void
weightLinks4Alloc
(
size_t
gridSize
,
std
::
vector
<
WeightLinks4
>
&
weightLinks
);
void
store
W
eight
L
inks
(
int
lalloc
,
size_t
numWeights
,
size_t
*
srch_add
,
double
*
weights
,
size_t
cell_add
,
std
::
vector
<
WeightLinks
>
&
weightLinks
);
void
store
_w
eight
l
inks
(
int
lalloc
,
size_t
numWeights
,
size_t
*
srch_add
,
double
*
weights
,
size_t
cell_add
,
std
::
vector
<
WeightLinks
>
&
weightLinks
);
void
store_weightlinks_bicubic
(
size_t
*
srch_add
,
double
(
&
weights
)[
4
][
4
],
size_t
cell_add
,
std
::
vector
<
WeightLinks4
>
&
weightLinks
);
void
weightLinksToRemapLinks
(
int
lalloc
,
size_t
gridSize
,
std
::
vector
<
WeightLinks
>
&
weightLinks
,
RemapVars
&
rv
);
void
weightLinks4ToRemapLinks
(
size_t
gridSize
,
std
::
vector
<
WeightLinks4
>
&
weightLinks
,
RemapVars
&
rv
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment