SFEMaNS  version 4.1 (work in progress)
Reference documentation for SFEMaNS
 All Classes Files Functions Variables Groups Pages
read_user_data.f90
Go to the documentation of this file.
3  !===I declare my own data here==================================================
4  LOGICAL :: if_my_stuff
5  !.......Continue here ................................
6  !===End I declare my own data here==============================================
7  END TYPE personalized_data
8 END MODULE user_data_module
9 
10 MODULE user_data
12  IMPLICIT NONE
13  PUBLIC :: read_user_data
14  TYPE(personalized_data), PUBLIC :: user
15  PRIVATE
16 
17 CONTAINS
18 
19  SUBROUTINE read_user_data(data_file)
20  USE my_util
22  IMPLICIT NONE
23  CHARACTER(*), INTENT(IN) :: data_file
24  INTEGER :: unit_file=22
25  LOGICAL :: test
26 
27  OPEN(unit=unit_file, file = data_file, form = 'formatted', status = 'unknown')
28 
29  !===I add lines that the code SFEMaNS reads in the data file=========================
30  CALL find_string(unit_file, '===Should I read my stuff? (true/false)', test)
31  IF (test) THEN
32  READ (unit_file, *) user%if_my_stuff
33  ELSE
34  user%if_my_stuff = .false.
35  END IF
36  !.......Continue here ................................
37  !===End I add lines that the code SFEMaNS reads in the data file=====================
38 
39  CLOSE(unit_file)
40  END SUBROUTINE read_user_data
41 
42 END MODULE user_data
subroutine, public read_user_data(data_file)
subroutine find_string(unit, string, okay)
section doc_intro_frame_work_num_app Numerical approximation subsection doc_intro_fram_work_num_app_Fourier_FEM Fourier Finite element representation The SFEMaNS code uses a hybrid Fourier Finite element formulation The Fourier decomposition allows to approximate the problem’s solutions for each Fourier mode modulo nonlinear terms that are made explicit The variables are then approximated on a meridian section of the domain with a finite element method The numerical approximation of a function f $f f is written in the following generic form
Definition: doc_intro.h:193