SPEED
READ_SDOF_INPUT_FILES.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine read_sdof_input_files
 Reads inputs files with oscillator properties.
 

Function/Subroutine Documentation

◆ read_sdof_input_files()

subroutine read_sdof_input_files

Reads inputs files with oscillator properties.

Author
Aline Herlin
Date
November, 2020
Version
1.0

Definition at line 24 of file READ_SDOF_INPUT_FILES.f90.

25
26 use speed_sci
28 use speed_par, only : filename, sdof_file
29
30 implicit none
31 integer*4 :: unit_file
32
33 ! Allocating some common variable which are needed for SPEEDSCI module
34 allocate(gr_acc_rot(3), gr_intf(3))
35
37
38 n_bld = 0
39
40 if ((sdofnum.gt.0).and.(mpi_id.eq.0)) then
41
42 ! Reading BLDINFO.txt file
43 filename="BLDINFO.txt"
44
45 if(len_trim(sdof_file) .ne. 70) then
46 bldinfo = sdof_file(1:len_trim(sdof_file)) // '/' // filename
47 else
49 endif
50
51 open(bldinfo_fp,file=bldinfo)
52 read(bldinfo_fp,*) n_bld
53 close(bldinfo_fp)
54
55 allocate(sys(n_bld)) !!! SDOF system
56 allocate(sdofag(n_bld,3),sdofgd(n_bld,3))
57 sdofag = 0; sdofgd = 0;
59
60 endif
61
62 return
subroutine make_sdof_system(file_bldinfo, dtsite, id)
Read input parameters for oscillators.
Contains SPEED PARAMETERS used in (SPEED, READ_INPUT_FILES, MAKE_PARTION_AND_MPI_FILES,...
Definition MODULES.f90:207
character *70 sdof_file
Definition MODULES.f90:243
real *8 deltat
Definition MODULES.f90:393
character *70 filename
Definition MODULES.f90:243
integer *4 mpi_id
Definition MODULES.f90:308
Contains parameters for MDOF.
Definition MODULES.f90:725
integer *4 n_bld
Definition MODULES.f90:773
character *100 bldinfo
Definition MODULES.f90:786
real *8, dimension(:), allocatable gr_acc_rot
Definition MODULES.f90:779
real *8, dimension(:), allocatable gr_intf
Definition MODULES.f90:779
integer *4 bldinfo_fp
Definition MODULES.f90:772
real *8, dimension(:,:), allocatable sdofgd
Definition MODULES.f90:782
real *8, dimension(:,:), allocatable sdofag
Definition MODULES.f90:782
integer *4 sdofnum
Definition MODULES.f90:772
type(system), dimension(:), allocatable sys
SDOF system.
Definition MODULES.f90:771
Contains a subset of SPEED paramters (used in TIME_LOOP)
Definition MODULES.f90:519

References speed_sci::bldinfo, speed_sci::bldinfo_fp, speed_par::deltat, speed_par::filename, speed_sci::gr_acc_rot, speed_sci::gr_intf, make_sdof_system(), speed_par::mpi_id, speed_sci::n_bld, speed_par::sdof_file, speed_sci::sdofag, speed_sci::sdofgd, speed_sci::sdofnum, and speed_sci::sys.

Here is the call graph for this function: