Phlos / fd2d-adjoint

finite difference wave propagation in 2D for Matlab. Both SH and P-SV, with forward and adjoint calculations and the possibility to compute kernels
GNU General Public License v3.0
12 stars 10 forks source link

Could not run a forward simulation #2

Open Mau-dvr75 opened 4 years ago

Mau-dvr75 commented 4 years ago

Hi, I tried to run a forward simulation but i couldn't. I am trying something like this: 1) run startup.m 2) edit input_parameters.m 2) run run_forward.m:

*[v_rec,t,u_fw,v_fw,rec_x,rec_z]=run_forward(10,'ricker')

and I am obtaining this:

Error in run_forward (line 67) rho = updateable.rho;

i also tried: *[v_rec,t,u_fw,v_fw,rec_x,rec_z]=run_forward(10)

and also only

*run_forward and I obtained this

Error in run_wavefield_propagation (line 91) DSX(src_x_id(is),src_z_id(is))= DSX(src_x_id(is),src_z_id(is)) + stf{is}.x(n); %%%%%%%%% Beetje krukkig zo... kan het mooier?

Error in run_forward (line 106) run_wavefield_propagation;

Could you please help me? What am I doing wrong?

Mau-dvr75 commented 4 years ago

Hi, I think that you did not upload the function that generates the source time function.

Mau-dvr75 commented 4 years ago

sorry, I found it :P

David314159265 commented 4 months ago

Hello there! I've come across the same errors and would greatly appreciate it if you could guide me through resolving them in detail. (Considering I'm quite new to MATLAB :) )

Mau-dvr75 commented 4 months ago

Hi David. Where are you from?

David314159265 commented 4 months ago

Hi Mau-dvr75, very happy to see your reply. I'm a Chinese student studying in China University of Geoscience :)

Mau-dvr75 commented 4 months ago

Nice. Could you share your email with me? I'll send you something you'll find useful

David314159265 commented 4 months ago

Sure, you can contact me at wang.zheng2.718@foxmail.com. I'm looking forward to receiving your email!

KamranNumeric commented 3 months ago

Hi, Anyone has the answer to the reported issue? I get the same error. I don't know which argument to provide to execute run_forward. Thanks in advance.