Skip to content

Commit c012c73

Browse files
committed
fix omp issue
1 parent c456a59 commit c012c73

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<div style="text-align: left;">
22

3-
### GPTCM 1.1.4 (2025-12-05)
3+
### GPTCM 1.1.4 (2026-01-16)
44

55
* Update survival curve's ylab in vignette
66
* Add symmetric and MALA RW-MH for the gamma-beta move
77
* TODO: ask chatGPT to check if all specified truncation with bounds are sufficient
8+
* TODO: update vignette
89

910
### GPTCM 1.1.3 (2025-11-01)
1011

src/BVS.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ void BVS_Sampler::sampleGamma(
319319
}
320320
*/
321321
#ifdef _OPENMP
322-
#pragma omp parallel for default(shared) reduction(+:logProposalGammaRatio)
322+
#pragma omp parallel for default(shared) reduction(+:logPriorGammaRatio)
323323
#endif
324324

325325
for(unsigned int i=0; i<hyperpar->mrfG_edge_n; ++i)
@@ -688,7 +688,7 @@ void BVS_Sampler::sampleEta(
688688
if((updateIdxMRF_common.n_elem > 0) && (hyperpar->mrfB_prop > 0))
689689
{
690690
#ifdef _OPENMP
691-
#pragma omp parallel for default(shared) reduction(+:logProposalEtaRatio)
691+
#pragma omp parallel for default(shared) reduction(+:logPriorEtaRatio)
692692
#endif
693693

694694
for(unsigned int i=0; i<hyperpar->mrfG_prop_edge_n; ++i)

0 commit comments

Comments
 (0)