Skip to content

Commit fc39843

Browse files
committed
put get_gQD for real data on workers as well.
1 parent 6a82616 commit fc39843

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/posterior.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function δlnP_δϕ(
134134
end
135135

136136
# gQD for the real data
137-
gQD = get_gQD(Lϕ, ds, f_wf_guess)
137+
gQD_future = @spawnat :any get_gQD(Lϕ, ds, f_wf_guess)
138138

139139
# gQD for several simulated datasets
140140
if use_previous_MF
@@ -149,6 +149,7 @@ function δlnP_δϕ(
149149
end
150150

151151
# final total posterior gradient, including gradient of the prior
152+
gQD = fetch(gQD_future)
152153
g = gQD.g --\ϕ
153154

154155
if return_state

0 commit comments

Comments
 (0)