element property fieldAll not implemented for non-magnets (drifts)

Issue #172 resolved
Jochem Snuverink created an issue

According to the manual it is possible to use fieldAll with drifts:

http://www.pp.rhul.ac.uk/bdsim/manual/model_description.html?highlight=fieldall#fields

However, this is not implemented. Relevant code:

BDSComponentFactory:

  else // non-magnet element
    {
      if (!(element->fieldAll.empty()))
{component->SetField(BDSFieldFactory::Instance()->GetDefinition(element->fieldAll));}
    }

this sets BDSAcceleratorComponent::fieldInfo, but this private member is not used anywhere.

Comments (1)

  1. Log in to comment