From 3b8cf0c34392822c77a80d0c19f3ab08c49b1bea Mon Sep 17 00:00:00 2001 From: David Sagan Date: Thu, 2 May 2024 14:58:47 -0400 Subject: [PATCH] Fix Tao command. (#942) * Fix Tao `python space_charge_com` command. --- tao/code/tao_python_cmd.f90 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tao/code/tao_python_cmd.f90 b/tao/code/tao_python_cmd.f90 index dbea51deb4..7bf9d83fd9 100644 --- a/tao/code/tao_python_cmd.f90 +++ b/tao/code/tao_python_cmd.f90 @@ -13,9 +13,10 @@ ! ! {type} is the type of the parameter and is one of: ! INT ! Integer number +! INT_ARR ! Integer array. ! REAL ! Real number -! COMPLEX ! Complex number (Re;Im) ! REAL_ARR ! Real array +! COMPLEX ! Complex number (Re;Im) ! LOGIC ! Logical: "T" or "F". ! INUM ! Integer whose allowed values can be obtained using the "python inum" command. ! ENUM ! String whose allowed values can be obtained using the "python enum" command. @@ -6792,8 +6793,8 @@ subroutine tao_python_cmd (input_str) nl=incr(nl); write(li(nl), rmt) 'lsc_sigma_cutoff;REAL;T;', space_charge_com%lsc_sigma_cutoff nl=incr(nl); write(li(nl), rmt) 'particle_sigma_cutoff;REAL;T;', space_charge_com%particle_sigma_cutoff - nl=incr(nl); write(li(nl), imt) 'space_charge_mesh_size;INT;T;', space_charge_com%space_charge_mesh_size - nl=incr(nl); write(li(nl), imt) 'csr3d_mesh_size;INT;T;', space_charge_com%csr3d_mesh_size + nl=incr(nl); write(li(nl), '(a, 3(a, i0))') 'space_charge_mesh_size;INT_ARR;T', (';', space_charge_com%space_charge_mesh_size(j), j = 1, 3) + nl=incr(nl); write(li(nl), '(a, 3(a, i0))') 'csr3d_mesh_size;INT_ARR;T', (';', space_charge_com%csr3d_mesh_size(j), j = 1, 3) nl=incr(nl); write(li(nl), imt) 'n_bin;INT;T;', space_charge_com%n_bin nl=incr(nl); write(li(nl), imt) 'particle_bin_span;INT;T;', space_charge_com%particle_bin_span nl=incr(nl); write(li(nl), imt) 'n_shield_images;INT;T;', space_charge_com%n_shield_images