Sets the base name of file to read.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ResPart_set), | intent(inout) | :: | this |
Set of resolved particles |
||
| character(len=*), | intent(in) | :: | name |
Name of file |
pure subroutine ResPart_set_SetReadFileName(this,name) !> Sets the base name of file to read. implicit none class(ResPart_set), intent(inout) :: this !! Set of resolved particles character(len=*), intent(in) :: name !! Name of file ! Work variables integer :: pos character(len=str64):: filename filename=name ! Figure out the base name, removing any extensions pos=scan(trim(adjustl(filename)),".",BACK=.true.) if (pos.gt.0) filename=filename(1:pos-1) this%read_file = trim(adjustl(filename))//"_centers.h5" this%ib%read_file = trim(adjustl(filename))//"_markers.h5" return end subroutine ResPart_set_SetReadFileName