diff --git a/build/opt-pricer b/build/opt-pricer index 6ade738..20f63a0 100755 Binary files a/build/opt-pricer and b/build/opt-pricer differ diff --git a/src/gbm_mc.c b/src/gbm_mc.c index 9df56ae..2e3df48 100644 --- a/src/gbm_mc.c +++ b/src/gbm_mc.c @@ -103,7 +103,10 @@ void gbm(struct Option *opt) options = malloc(sizeof(struct Option) * NUM_THREADS); for(i=0; iexpiry_date; + options[i].value_date = opt->value_date; } + threads = malloc(sizeof(pthread_t) * NUM_THREADS); opt->sims = opt->sims / NUM_THREADS;