segmentation fault occurred when i ran swan from COAWST

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
songpan
Posts: 1
Joined: Wed May 11, 2011 5:24 pm
Location: chengdu university of information and technology

segmentation fault occurred when i ran swan from COAWST

#1 Unread post by songpan »

Dear all, I ran the only swan model from COAWST;The swan.h file only has "#define SWAN_MODEL". The executable coawstM was created successfully.

However, when i ran "mpirun -n 4 ./coawstM coupling_test.in", i got this error “forrtl: severe (174): SIGSEGV, segmentation fault occurred”. I had checked the source code. Then i found the code exit when it run to line 210 in COAWST/SWAN/Src/waves_control.F, "CALL mpi_comm_rank (WAV_COMM_WORLD, MyRank?, MyError?)". I thought that might be an error about MPI. I used the same swan.in(INPUT of swan), swan_bathy.bot, swan_coord.grd and wind files to run another swan model(not from COAWST). Everything runs ok! So i thought these files were correct.

I also tried to run only WRF model from COAWST with several cpu. The coawstM run well. Now, i am confused and do not know how to solve this problem.

Any tips would be greatly appreciated.

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: segmentation fault occurred when i ran swan from COAWST

#2 Unread post by jcwarner »


Post Reply