Commit 28e1750e authored by Florian Wittkamp's avatar Florian Wittkamp

IFOS -> IFOS2D

! IFOS -> IFOS2D !
- New make targes is IFOS2D
- Generated binary is IFOS2D

Adding 2D to IFOS to indicate, that it is our 2D FWI Code.
parent df9494de
INSTALL for IFOS INSTALL for IFOS2D
================== ==================
A detailed installation instruction is provided in the chapter 5 of the A detailed installation instruction is provided in the chapter 5 of the
documentation (IFOS/doc/manual_IFOS.pdf). If the manual is not compiled, documentation (IFOS/doc/manual_IFOS.pdf). If the manual is not compiled,
please use the script IFOS/doc/compile_LaTeX_manual.sh please use the script IFOS/doc/compile_LaTeX_manual.sh
To compile IFOS a MAKEFILE is available in the IFOS/par directory. To To compile IFOS2D a MAKEFILE is available in the IFOS/par directory. To
use the MAKEFILE type use the MAKEFILE type
make make
......
README for IFOS README for IFOS2D
================= =================
IFOS (Inversion of Full observed seismograms) IFOS2D (Inversion of Full observed seismograms)
is a 2D elastic full waveform inversion code. The inversion problem is solved is a 2D elastic full waveform inversion code. The inversion problem is solved
by a conjugate gradient method. The gradients are computed in the time domain by a conjugate gradient method. The gradients are computed in the time domain
with the adjoint method. The forward modeling is also done in the time domain with the adjoint method. The forward modeling is also done in the time domain
......
# What is IFOS? # What is IFOS2D?
IFOS (Inversion of Full observed seismograms) is a 2D elastic full waveform inversion code. IFOS2D (Inversion of Full observed seismograms) is a 2D elastic full waveform inversion code.
The inversion problem is solved by a conjugate gradient method and the gradients are computed in the time domain with the adjoint method. The inversion problem is solved by a conjugate gradient method and the gradients are computed in the time domain with the adjoint method.
The forward modeling is done by a time domain finite difference scheme. The manual is included in the download archive or can be downloaded [here](https://git.scc.kit.edu/GPIAG-Software/IFOS/wikis/home) The forward modeling is done by a time domain finite difference scheme. The manual is included in the download archive or can be downloaded [here](https://git.scc.kit.edu/GPIAG-Software/IFOS2D/wikis/home)
# Download and Newsletter # Download and Newsletter
You can Download the [latest Release](https://git.scc.kit.edu/GPIAG-Software/IFOS/tree/Release) or the current [Beta-Version](https://git.scc.kit.edu/GPIAG-Software/IFOS/tree/master) You can Download the [latest Release](https://git.scc.kit.edu/GPIAG-Software/IFOS2D/tree/Release) or the current [Beta-Version](https://git.scc.kit.edu/GPIAG-Software/IFOS2D/tree/master)
To receive news and updates please [register](http://www.gpi.kit.edu/Software-FWI.php) on the email list IFOS@lists.kit.edu. To receive news and updates please [register](http://www.gpi.kit.edu/Software-FWI.php) on the email list IFOS@lists.kit.edu.
Please use this list also to ask questions on using the software or to report problems or bugs. Please use this list also to ask questions on using the software or to report problems or bugs.
\ No newline at end of file
...@@ -98,6 +98,5 @@ ...@@ -98,6 +98,5 @@
% \begin{center} % \begin{center}
% \includegraphics[width=0.18\textwidth]{CAU_Siegel.png} % \includegraphics[width=0.18\textwidth]{CAU_Siegel.png}
% \hspace{2cm} % \hspace{2cm}
\includegraphics[width=0.25\textwidth]{Kitlogo_en_cmyk.pdf}
\end{center} \end{center}
\rmfamily \rmfamily
\ No newline at end of file
doc/latex/IFOS_title1.png

59.6 KB | W: | H:

doc/latex/IFOS_title1.png

71.5 KB | W: | H:

doc/latex/IFOS_title1.png
doc/latex/IFOS_title1.png
doc/latex/IFOS_title1.png
doc/latex/IFOS_title1.png
  • 2-up
  • Swipe
  • Onion skin
default: ../ IFOS default: ../ IFOS2D
.PHONY: aff .PHONY: aff
aff: aff:
...@@ -17,18 +17,18 @@ libcseife: ...@@ -17,18 +17,18 @@ libcseife:
$(MAKE) -C ../contrib/libcseife install $(MAKE) -C ../contrib/libcseife install
.PHONY: IFOS .PHONY: IFOS2D
IFOS: aff fourier stfinv libcseife IFOS2D: aff fourier stfinv libcseife
ifdef MODEL ifdef MODEL
$(MAKE) -C ../src/ IFOS MODEL=$(MODEL) $(MAKE) -C ../src/ IFOS2D MODEL=$(MODEL)
else else
$(MAKE) -C ../src/ IFOS $(MAKE) -C ../src/ IFOS2D
endif endif
.PHONY: clean .PHONY: clean
clean: clean:
rm -rf ../bin/IFOS rm -rf ../bin/IFOS2D
$(MAKE) -C ../contrib/aff clean $(MAKE) -C ../contrib/aff clean
$(MAKE) -C ../contrib/fourier clean $(MAKE) -C ../contrib/fourier clean
$(MAKE) -C ../contrib/stfinv clean $(MAKE) -C ../contrib/stfinv clean
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
# compiling all libraries and IFOS # compiling all libraries and IFOS
make clean make clean
make IFOS MODEL=../genmod/toy_example_true.c make IFOS2D MODEL=../genmod/toy_example_true.c
# starting IFOS for forward modeling # starting IFOS for forward modeling
# (depending on the MPI package you maybe have to adjust the following programme call, # (depending on the MPI package you maybe have to adjust the following programme call,
# e.g. when using openMPI you do not have to use the 'lamboot' command) # e.g. when using openMPI you do not have to use the 'lamboot' command)
#lamboot #lamboot
mpirun -np 4 nice -19 ../bin/IFOS in_and_out/toy_example/toy_example_FW.json | tee in_and_out/toy_example/toy_example_FW.out mpirun -np 4 nice -19 ../bin/IFOS2D in_and_out/toy_example/toy_example_FW.json | tee in_and_out/toy_example/toy_example_FW.out
############################################################### ###############################################################
# running the inversion # # running the inversion #
...@@ -20,8 +20,8 @@ mpirun -np 4 nice -19 ../bin/IFOS in_and_out/toy_example/toy_example_FW.json | t ...@@ -20,8 +20,8 @@ mpirun -np 4 nice -19 ../bin/IFOS in_and_out/toy_example/toy_example_FW.json | t
# compiling IFOS # compiling IFOS
make clean make clean
make IFOS MODEL=../genmod/toy_example_start.c make IFOS2D MODEL=../genmod/toy_example_start.c
# starting IFOS # starting IFOS
#lamboot #lamboot
mpirun -np 4 nice -19 ../bin/IFOS in_and_out/toy_example/toy_example_INV.json | tee in_and_out/toy_example/toy_example_INV.out mpirun -np 4 nice -19 ../bin/IFOS2D in_and_out/toy_example/toy_example_INV.json | tee in_and_out/toy_example/toy_example_INV.out
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
# compiling all libraries and IFOS # compiling all libraries and IFOS
make clean make clean
make IFOS MODEL=../genmod/toy_example_true.c MODEL_EL=../genmod/toy_example_elastic_true.c make IFOS2D MODEL=../genmod/toy_example_true.c MODEL_EL=../genmod/toy_example_elastic_true.c
# starting IFOS for forward modeling # starting IFOS for forward modeling
# (depending on the MPI package you maybe have to adjust the following programme call, # (depending on the MPI package you maybe have to adjust the following programme call,
# e.g. when using openMPI you do not have to use the 'lamboot' command) # e.g. when using openMPI you do not have to use the 'lamboot' command)
#lamboot #lamboot
mpirun -np 4 ../bin/IFOS in_and_out/toy_example/toy_example_FW_SH.json | tee in_and_out/toy_example/toy_example_FW_SH.out mpirun -np 4 ../bin/IFOS2D in_and_out/toy_example/toy_example_FW_SH.json | tee in_and_out/toy_example/toy_example_FW_SH.out
############################################################### ###############################################################
...@@ -21,8 +21,8 @@ mpirun -np 4 ../bin/IFOS in_and_out/toy_example/toy_example_FW_SH.json | tee in_ ...@@ -21,8 +21,8 @@ mpirun -np 4 ../bin/IFOS in_and_out/toy_example/toy_example_FW_SH.json | tee in_
# compiling IFOS # compiling IFOS
make clean make clean
make IFOS MODEL=../genmod/toy_example_start.c MODEL_EL=../genmod/toy_example_elastic_start.c make IFOS2D MODEL=../genmod/toy_example_start.c MODEL_EL=../genmod/toy_example_elastic_start.c
# starting IFOS # starting IFOS
#lamboot #lamboot
mpirun -np 4 ../bin/IFOS in_and_out/toy_example/toy_example_INV_SH.json | tee in_and_out/toy_example/toy_example_INV_SH.out mpirun -np 4 ../bin/IFOS2D in_and_out/toy_example/toy_example_INV_SH.json | tee in_and_out/toy_example/toy_example_INV_SH.out
...@@ -13,10 +13,10 @@ rm su/measured_data/toy_example* ...@@ -13,10 +13,10 @@ rm su/measured_data/toy_example*
# compiling all libraries and IFOS # compiling all libraries and IFOS
make clean make clean
make IFOS MODEL_AC=../genmod/toy_example_ac_true.c make IFOS2D MODEL_AC=../genmod/toy_example_ac_true.c
# starting IFOS for forward modeling # starting IFOS for forward modeling
mpirun -np 4 nice -19 ../bin/IFOS in_and_out/toy_example/toy_example_ac_FW.json | tee in_and_out/toy_example/toy_example_ac_FW.out mpirun -np 4 nice -19 ../bin/IFOS2D in_and_out/toy_example/toy_example_ac_FW.json | tee in_and_out/toy_example/toy_example_ac_FW.out
############################################################### ###############################################################
# running the inversion # # running the inversion #
...@@ -24,10 +24,10 @@ mpirun -np 4 nice -19 ../bin/IFOS in_and_out/toy_example/toy_example_ac_FW.json ...@@ -24,10 +24,10 @@ mpirun -np 4 nice -19 ../bin/IFOS in_and_out/toy_example/toy_example_ac_FW.json
# compiling IFOS # compiling IFOS
make clean make clean
make IFOS MODEL_AC=../genmod/toy_example_ac_start.c make IFOS2D MODEL_AC=../genmod/toy_example_ac_start.c
# starting IFOS # starting IFOS
mpirun -np 4 nice -19 ../bin/IFOS in_and_out/toy_example/toy_example_ac_INV.json | tee in_and_out/toy_example/toy_example_ac_INV.out mpirun -np 4 nice -19 ../bin/IFOS2D in_and_out/toy_example/toy_example_ac_INV.json | tee in_and_out/toy_example/toy_example_ac_INV.out
make clean make clean
......
#lamboot -v lamhosts #lamboot -v lamhosts
lamboot lamboot
mpirun -np 8 nice -19 ../bin/IFOS in_and_out/IFOS_INV.json | tee in_and_out/IFOS_INV.out mpirun -np 8 nice -19 ../bin/IFOS2D in_and_out/IFOS_INV.json | tee in_and_out/IFOS_INV.out
#cd su #cd su
......
...@@ -2,7 +2,7 @@ rm -f su/IFOS* su/measured_data/IFOS* ...@@ -2,7 +2,7 @@ rm -f su/IFOS* su/measured_data/IFOS*
lamboot lamboot
#lamboot -v lamhosts #lamboot -v lamhosts
mpirun -np 8 nice -19 ../bin/IFOS in_and_out/IFOS_FW.json | tee in_and_out/IFOS_FW.out mpirun -np 8 nice -19 ../bin/IFOS2D in_and_out/IFOS_FW.json | tee in_and_out/IFOS_FW.out
cd model cd model
cp model_Test_rho_it_0.bin model_Test_vp_it_0.bin model_Test_vs_it_0.bin ../model_true/. cp model_Test_rho_it_0.bin model_Test_vp_it_0.bin model_Test_vs_it_0.bin ../model_true/.
cd .. cd ..
......
# Makefile for IFOS # Makefile for IFOS2D
#-------------------------------------------------------- #--------------------------------------------------------
# edit here: # edit here:
...@@ -49,8 +49,8 @@ SNAPMERGE_SCR = \ ...@@ -49,8 +49,8 @@ SNAPMERGE_SCR = \
util.c util.c
IFOS= \ IFOS2D= \
ifos.c \ IFOS2D.c \
stf.c \ stf.c \
window_cos.c \ window_cos.c \
calc_mat_change_test.c \ calc_mat_change_test.c \
...@@ -166,15 +166,14 @@ IFOS= \ ...@@ -166,15 +166,14 @@ IFOS= \
SNAPMERGE_OBJ = $(SNAPMERGE_SCR:%.c=%.o) SNAPMERGE_OBJ = $(SNAPMERGE_SCR:%.c=%.o)
IFOS_OBJ = $(IFOS:%.c=%.o) IFOS_OBJ = $(IFOS2D:%.c=%.o)
snapmerge: $(SNAPMERGE_OBJ) snapmerge: $(SNAPMERGE_OBJ)
$(CC) $(SFLAGS) $(SNAPMERGE_OBJ) -o ../bin/snapmerge $(LFLAGS) $(CC) $(SFLAGS) $(SNAPMERGE_OBJ) -o ../bin/snapmerge $(LFLAGS)
IFOS: $(IFOS_OBJ) IFOS2D: $(IFOS_OBJ)
$(CC) $(SFLAGS) $(IFOS_OBJ) -o $(EXEC)/IFOS $(LFLAGS) $(CC) $(SFLAGS) $(IFOS_OBJ) -o $(EXEC)/IFOS $(LFLAGS)
clean: clean:
find . -name "*.o" -exec rm {} \; find . -name "*.o" -exec rm {} \;
find . -name "*.c%" -exec rm {} \; find . -name "*.c%" -exec rm {} \;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment