|
13 | 13 | * GNU General Public License for more details.
|
14 | 14 | *
|
15 | 15 | * You should have received a copy of the GNU General Public License
|
16 |
| - * along with MULTEM. If not, see <http:// www.gnu.org/licenses/>. |
| 16 | + * along with MULTEM. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | */
|
18 | 18 |
|
19 | 19 | #include <algorithm>
|
@@ -45,6 +45,7 @@ void read_input_multislice(const mxArray *mx_input_multislice, TInput_Multislice
|
45 | 45 | input_multislice.cpu_nthread = mx_get_scalar_field<int>(mx_input_multislice, "cpu_nthread");
|
46 | 46 | input_multislice.gpu_device = mx_get_scalar_field<int>(mx_input_multislice, "gpu_device");
|
47 | 47 | input_multislice.gpu_nstream = mx_get_scalar_field<int>(mx_input_multislice, "gpu_nstream");
|
| 48 | + input_multislice.set_device(); |
48 | 49 |
|
49 | 50 | input_multislice.simulation_type = mx_get_scalar_field<mt::eTEM_Sim_Type>(mx_input_multislice, "simulation_type");
|
50 | 51 | input_multislice.phonon_model = mx_get_scalar_field<mt::ePhonon_Model>(mx_input_multislice, "phonon_model");
|
@@ -129,13 +130,13 @@ void read_input_multislice(const mxArray *mx_input_multislice, TInput_Multislice
|
129 | 130 | input_multislice.cond_lens.zero_defocus_plane = mx_get_scalar_field<value_type_r>(mx_input_multislice, "cond_lens_zero_defocus_plane");
|
130 | 131 | input_multislice.cond_lens.set_input_data(input_multislice.E_0, input_multislice.grid);
|
131 | 132 |
|
132 |
| - //input_multislice.cdl_var_type = mx_get_scalar_field<mt::eLens_Var_Type>(mx_input_multislice, "cdl_var_type"); |
133 |
| - //if(!input_multislice.is_whole_specimen() && full) |
134 |
| - //{ |
135 |
| - // auto thickness = mx_get_matrix_field<rmatrix_r>(mx_input_multislice, "thickness"); |
136 |
| - // input_multislice.thickness.resize(thickness.m_size); |
137 |
| - // std::copy(thickness.real, thickness.real + thickness.m_size, input_multislice.thickness.begin()); |
138 |
| - //} |
| 133 | + // input_multislice.cdl_var_type = mx_get_scalar_field<mt::eLens_Var_Type>(mx_input_multislice, "cdl_var_type"); |
| 134 | + // if(!input_multislice.is_whole_specimen() && full) |
| 135 | + // { |
| 136 | + // auto thickness = mx_get_matrix_field<rmatrix_r>(mx_input_multislice, "thickness"); |
| 137 | + // input_multislice.thickness.resize(thickness.m_size); |
| 138 | + // std::copy(thickness.real, thickness.real + thickness.m_size, input_multislice.thickness.begin()); |
| 139 | + // } |
139 | 140 |
|
140 | 141 | /****************************** Objective lens ********************************/
|
141 | 142 | input_multislice.obj_lens.m = mx_get_scalar_field<int>(mx_input_multislice, "obj_lens_m"); // momentum of the vortex
|
|
0 commit comments