-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEQ_create_typeflt.m
executable file
·44 lines (38 loc) · 1.19 KB
/
EQ_create_typeflt.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
function flt = EQ_create_typeflt
% EQ_create_typeflt.m
% EQ Function that defines the GTdef model type
% Nathanael Wong Zhixin, Feng Lujia
%
% This function defines the GTdef model fault type and therefore the type
% of input information that is required.
%
% INPUT: N/A
%
% OUTPUT:
% -- flt : GTdef model fault type information
%
% FORMAT OF CALL: EQ_create_typeflt
%
% OVERVIEW:
% 1) This calls as input the type of fault model and exports it to the
% parent function
%
% VERSIONS:
% 1) -- Created on 20160614 by Nathanael Wong
%
% 2) -- Rewritten sometime in 2017
%
% 3) -- Final version validated and commented on 20190715 by Nathanael Wong
%%%%%%%%%%%%%%%%%%%%%%%% SELECTION OF FAULT MODEL %%%%%%%%%%%%%%%%%%%%%%%%%
disp ('Type of Fault Model ranges from 1 to 4');
flt = input ('Type of Fault Model: ');
disp (' ');
while ~any(flt == 1:4)
disp ('Error! Please input a valid fault model type.');
disp ('Type of GTdef Fault Model that can be run by EQ_ functions');
disp ('ranges from 1 to 4');
flt = input ('Type of Fault Model: ');
disp (' ');
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end