thermodata.H 530 Bytes
Newer Older
shunbo's avatar
shunbo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

    label nSpecie = Y.size();
    PtrList<gasEThermoPhysics> specieData(Y.size());
    forAll(specieData, i)
    {
        specieData.set
        (
            i,
            new gasEThermoPhysics
            (
                dynamic_cast<const reactingMixture<gasEThermoPhysics>&>
                    (thermo).speciesData()[i]
            )
        );
    }

thrust::device_ptr<gasEThermoPhysics> gSpeciesData = thrust::device_malloc<gasEThermoPhysics>(nSpecie);
thrust::copy(specieData.begin(),specieData.end(),gSpeciesData);