SPEED
READ_SDOF_INPUT_FILES.f90
Go to the documentation of this file.
1! Copyright (C) 2012 The SPEED FOUNDATION
2! Author: Ilario Mazzieri
3!
4! This file is part of SPEED.
5!
6! SPEED is free software; you can redistribute it and/or modify it
7! under the terms of the GNU Affero General Public License as
8! published by the Free Software Foundation, either version 3 of the
9! License, or (at your option) any later version.
10!
11! SPEED is distributed in the hope that it will be useful, but
12! WITHOUT ANY WARRANTY; without even the implied warranty of
13! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14! Affero General Public License for more details.
15!
16! You should have received a copy of the GNU Affero General Public License
17! along with SPEED. If not, see <http://www.gnu.org/licenses/>.
18
23
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
63end subroutine read_sdof_input_files
subroutine make_sdof_system(file_bldinfo, dtsite, id)
Read input parameters for oscillators.
subroutine read_sdof_input_files
Reads inputs files with oscillator properties.
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