Skip to content
Snippets Groups Projects
Commit f4371a7e authored by Holger Obermaier's avatar Holger Obermaier
Browse files

The extensions of the source code files must be changed from .c to .cpp

parent 5bfb684a
No related branches found
No related tags found
1 merge request!2Develop porting from c to cpp
......@@ -22,7 +22,7 @@ INSTDIR := ../bin
# Source to use for internal model generation (toy example); see 'genmod'
# directory for possible choices; not relevant if you use your own model
###############################################################################
HH_MODEL := hh_toy_true.c
HH_MODEL := hh_toy_true.cpp
###############################################################################
# Name of executable
......@@ -109,7 +109,7 @@ EXTRA_LDFLAGS :=
## module purge
## module add mpi/openmpi/4.1
## unset CFLAGS CXXFLAGS FCFLAGS FFLAGS OMPI_CFLAGS OMPI_CXXFLAGS OMPI_FCFLAGS OMPI_FFLAGS
## make -j ifos3D HH_MODEL=hh_toy_true.c V=1 \
## make -j ifos3D HH_MODEL=hh_toy_true.cpp V=1 \
## OMPI_CC="${HOME}/aocc-compiler-5.0.0/bin/clang" \
## I_MPI_CC="${HOME}aocc-compiler-5.0.0/bin/clang" \
## AR="${HOME}/aocc-compiler-5.0.0/bin/llvm-ar" \
......@@ -171,14 +171,14 @@ DOC_FILES := $(wildcard $(strip $(realpath $(BASEDIR)))/doc/latex/*.tex) \
$(strip $(realpath $(BASEDIR)))/doc/latex/manual_IFOS3D.bib
REF_MAIN := quick_reference
MERGE_FILES := json_parser.c \
logging.c \
merge.c \
readdsk.c \
read_par_json.c \
snapmerge.c \
util.c \
writedsk.c
MERGE_FILES := json_parser.cpp \
logging.cpp \
merge.cpp \
readdsk.cpp \
read_par_json.cpp \
snapmerge.cpppp \
util.cpp \
writedsk.cpp
SEIFE_FILES := cseife.c \
cseife_deriv.c \
......@@ -190,111 +190,111 @@ SEIFE_FILES := cseife.c \
KISS_FILES := kiss_fftr.c \
kiss_fft.c
IFOS_FILES := absorb.c \
av_mat.c \
calc_res.c \
catseis.c \
checkfd_ssg.c \
check_recfile.c \
check_recpos.c \
check_srpos.c \
conjugategrad.c \
constant_boundary.c \
constant_boundary_acoustic.c \
CPML_coeff.c \
CPML_ini_elastic.c \
cpmodel.c \
disc_fourier.c \
exchange_buffer.c \
exchange_Fv.c \
exchange_par.c \
exchange_s.c \
exchange_s_acoustic.c \
exchange_v.c \
filt_seis.c \
freemem.c \
freemem_seis.c \
fsource.c \
gradient_F.c \
gradient_F_acoustic.c \
gradient_smoothing.c\
readgrad.c\
hess_apply.c \
IFOS_FILES := absorb.cpp \
av_mat.cpp \
calc_res.cpp \
catseis.cpp \
checkfd_ssg.cpp \
check_recfile.cpp \
check_recpos.cpp \
check_srpos.cpp \
conjugategrad.cpp \
constant_boundary.cpp \
constant_boundary_acoustic.cpp \
CPML_coeff.cpp \
CPML_ini_elastic.cpp \
cpmodel.cpp \
disc_fourier.cpp \
exchange_buffer.cpp \
exchange_Fv.cpp \
exchange_par.cpp \
exchange_s.cpp \
exchange_s_acoustic.cpp \
exchange_v.cpp \
filt_seis.cpp \
freemem.cpp \
freemem_seis.cpp \
fsource.cpp \
gradient_F.cpp \
gradient_F_acoustic.cpp \
gradient_smoothing.cpp\
readgrad.cpp\
hess_apply.cpp \
$(HH_MODEL) \
ifos3d.c \
initmem.c \
initproc.c \
initseis.c \
interpol.c \
json_parser.c \
lbfgs.c \
lbfgs_save.c \
logging.c \
matcopy.c \
matcopy_acoustic.c \
merge.c \
mergemod.c \
modelupdate.c \
modelupdate_acoustic.c \
normalization.c \
outgrad.c \
outhess.c \
outmod.c \
outseis.c \
precongrad.c \
precongrad_acoustic.c \
psource.c \
read_srcsig.c \
read_su.c \
readdsk.c \
readhess.c \
readinv.c \
readmod.c \
read_par_json.c \
readrec.c \
readseis.c \
receiver.c \
residual.c \
saveseis.c \
savesig.c \
scan_suhead_rec.c \
scan_topo.c \
seismo_shift.c \
seismo_ssg.c \
sig_integrate.c \
snap_ssg.c \
sources.c \
splitrec.c \
splitsrc.c \
steplength.c \
stfi.c \
stfi_calc.c \
stfi_apply.c \
stfi_merge.c \
su_gather.c \
su_struct.c \
surface_ssg_elastic.c \
surface_ssg_acoustic.c \
timeloop.c \
time_window.c \
update_s_ssg_CPML_elastic.c \
update_s_ssg_elastic.c \
update_v_ssg.c \
update_v_ssg_CPML.c \
update_s_ssg_CPML_acoustic.c \
update_s_ssg_acoustic.c \
update_v_ssg_acoustic.c \
update_v_ssg_CPML_acoustic.c \
util.c \
wavelet.c \
write_su.c \
writedsk.c \
writepar.c \
zero_grad.c \
zero_hess.c \
zero_invers.c \
zero_wavefield.c\
zero_wavefield_acoustic.c
ifos3d.cpp \
initmem.cpp \
initproc.cpp \
initseis.cpp \
interpol.cpp \
json_parser.cpp \
lbfgs.cpp \
lbfgs_save.cpp \
logging.cpp \
matcopy.cpp \
matcopy_acoustic.cpp \
merge.cpp \
mergemod.cpp \
modelupdate.cpp \
modelupdate_acoustic.cpp \
normalization.cpp \
outgrad.cpp \
outhess.cpp \
outmod.cpp \
outseis.cpp \
precongrad.cpp \
precongrad_acoustic.cpp \
psource.cpp \
read_srcsig.cpp \
read_su.cpp \
readdsk.cpp \
readhess.cpp \
readinv.cpp \
readmod.cpp \
read_par_json.cpp \
readrec.cpp \
readseis.cpp \
receiver.cpp \
residual.cpp \
saveseis.cpp \
savesig.cpp \
scan_suhead_rec.cpp \
scan_topo.cpp \
seismo_shift.cpp \
seismo_ssg.cpp \
sig_integrate.cpp \
snap_ssg.cpp \
sources.cpp \
splitrec.cpp \
splitsrc.cpp \
steplength.cpp \
stfi.cpp \
stfi.cppalc.cpp \
stfi_apply.cpp \
stfi_merge.cpppp \
su_gather.cpp \
su_struct.cpp \
surface_ssg_elastic.cpp \
surface_ssg_acoustic.cpp \
timeloop.cpp \
time_window.cpp \
update_s_ssg_CPML_elastic.cpp \
update_s_ssg_elastic.cpp \
update_v_ssg.cpp \
update_v_ssg_CPML.cpp \
update_s_ssg_CPML_acoustic.cpp \
update_s_ssg_acoustic.cpp \
update_v_ssg_acoustic.cpp \
update_v_ssg_CPML_acoustic.cpp \
util.cpp \
wavelet.cpp \
write_su.cpp \
writedsk.cpp \
writepar.cpp \
zero_grad.cpp \
zero_hess.cpp \
zero_invers.cpp \
zero_wavefield.cpp\
zero_wavefield_acoustic.cpp
MERGE_OBJ := $(addprefix $(MERGE_O)/, $(patsubst %.c, %.o, $(MERGE_FILES)))
IFOS_OBJ := $(addprefix $(IFOS_O)/, $(patsubst %.c, %.o, $(IFOS_FILES)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment