function missing

10 views
Skip to first unread message

王聪聪

unread,
Dec 8, 2025, 11:54:02 PMDec 8
to sinte...@googlegroups.com
Dear Developers,

I hope this message finds you well. I am currently learning and exploring MRST (the reservoir simulation toolbox developed by your company), and I have encountered an issue while working with the co2-lab module that I hope you can assist me with.
In my study process, I noticed that numerous examples invoke the trapAnalysis function. This function in turn calls cell_based_trap_analysis, which further invokes findTrappingStructure. The findTrappingStructure function then references bfs_argumented, and ultimately bfs_argumented calls a depth-first search (DFS) function named dfs.m—a file that appears to be missing from the official MRST code repository.
I would greatly appreciate it if you could provide me with the dfs.m function file or clarify where I might obtain this critical component. Having access to this function would allow me to continue my learning and research on the co2-lab module unimpeded.
Thank you very much for your time and support. I look forward to your reply at your earliest convenience.

Sincerely,

Wang Congcong

Odd Andersen

unread,
Dec 16, 2025, 3:27:01 AMDec 16
to 王聪聪, sinte...@googlegroups.com
Dear Wang,

It sounds to me like you are missing the third party MatlabBGL graph library.  If you have not installed it, you can do so by launching matlab, running the 'startup' script in the mrst folder, and then run the command downloadMBGL

I hope this works - please let me know if you still have problems.

Best regards, 
Odd A.

Odd Andersen
Senior Research Scientist
SINTEF Digital, Mathematics and Cybernetics
Oslo, Norway

Fra: sinte...@googlegroups.com <sinte...@googlegroups.com> på vegne av 王聪聪 <wangcongc...@163.com>
Sendt: tirsdag 9. desember 2025 03:26
Til: sinte...@googlegroups.com <sinte...@googlegroups.com>
Emne: [MRST Users] function missing
 
--
You received this message because you are subscribed to the Google Groups "MRST-users: The Matlab Reservoir Simulation Toolbox User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sintef-mrst...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sintef-mrst/1c6f67d.2f13d.19b00eeb42e.Coremail.wangcongcong060712%40163.com.
Reply all
Reply to author
Forward
0 new messages