about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/potentials/@dpot/get_fields.m
blob: 2400bc994d5121f7b2913cc0b549cb2368262266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function val = get_params(pot, name)
% GET_PARAMS Accessor function for a field (dpot)
% val = get_params(pot, name)
%
% e.g., get_params(pot, 'table') or 'domain'

switch name
 case 'table', val = pot.T;
 case 'domain', val = pot.domain;
 otherwise,
  error(['invalid field name ' name]);
end