Skip to content

Commit

Permalink
Merge pull request #712 from jsberg-bnl/create-data-defaults
Browse files Browse the repository at this point in the history
create_d2_data sets some defaults on the created data
  • Loading branch information
DavidSagan authored Dec 21, 2023
2 parents 4a28719 + 84837f6 commit 55100a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tao/code/tao_python_cmd.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,9 @@ subroutine tao_python_cmd (input_str)
i1 = i2 + 1
i2 = i2 + 1 + ix_max(j) - ix_min(j)
call tao_point_d1_to_data (d1_ptr, u%data(i1:i2), ix_min(j))
! Load some sensible defaults so they don't need to be set manually
u%data(i1:i2)%merit_type = 'target'
u%data(i1:i2)%data_source = 'lat'
enddo

!------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 55100a4

Please sign in to comment.