Skip to content

SasView_ components use invalid stack-array syntax #2679

Description

@g5t

All three of SasView_core_multi_shell.comp, SasView_onion.comp and SasView_rpa.comp have an entry in SETTING PARAMETERS with a fixed-size (stack) array.

DEFINE COMPONENT SasView_core_multi_shell
SETTING PARAMETERS (
sld_core=1.0,
radius=200.0,
sld_solvent=6.4,
n=1,
vector sld[n]={1.7},
vector thickness[n]={40.0},
model_scale=1.0,
model_abs=0.0,
xwidth=0.01,
yheight=0.01,
zdepth=0.005,
R=0,
target_x=0,
target_y=0,
target_z=1,
int target_index=1,
focus_xw=0.5,
focus_yh=0.5,
focus_aw=0,
focus_ah=0,
focus_r=0,
pd_radius=0.0,
pd_thickness[n]=0.0)

DEFINE COMPONENT SasView_onion
SETTING PARAMETERS (
sld_core=1.0,
radius_core=200.0,
sld_solvent=6.4,
n_shells=1,
vector sld_in[n_shells]={1.7},
vector sld_out[n_shells]={2.0},
vector thickness[n_shells]={40.0},
vector A[n_shells]={1.0},
model_scale=1.0,
model_abs=0.0,
xwidth=0.01,
yheight=0.01,
zdepth=0.005,
R=0,
target_x=0,
target_y=0,
target_z=1,
int target_index=1,
focus_xw=0.5,
focus_yh=0.5,
focus_aw=0,
focus_ah=0,
focus_r=0,
pd_radius_core=0.0,
pd_thickness[n_shells]=0.0)

DEFINE COMPONENT SasView_rpa
SETTING PARAMETERS (
case_num=1,
vector N[4]={1000.0},
vector Phi[4]={0.25},
vector v[4]={100.0},
vector L[4]={10.0},
vector b[4]={5.0},

Like as it appears for most of the sasmodels components, none of these components are used in example instruments:

SasView_core_multi_shell is used in 0 example(s):

SasView_onion is used in 0 example(s):

SasView_rpa is used in 0 example(s):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions