Closed kevinhkhuynh closed 2 years ago
Added init_samples to S_OPT, similarly to GNAT to fit the Laghos template, and added a simple test.
Once this is reviewed, I will merge this into PR 112 and merge PR 112, along with the corresponding Laghos PR.
It wasn't entirely clear to me what the GNAT version of this was doing, so I tried to re-implement it here.
Here, I assume each process has its own unique init_samples vector using the local row indices (i.e., the indices for each init_samples vector start from zero on each processor) and that num_samples <= init_samples.