This is a bass solo, right?
Song is in Dm, what is the chord progression doing during your solo? Does it revert to a modal vamp for your solo or just stick with the Dm progression.
http://www.riddleworks.com/modalharm3.html
If you are to play over a progression I'd follow the chords and draw my solo notes from pentatonic scales of the chord changes. Lets compare pentatonic and modes and see what we have.
Notes of fourth mode of the melodic minor scale;
G F E D C Bb A
What are the notes in the D minor pentatonic?
D, F, G, A, C
What are the notes in the G minor pentatonic?
G, Bb, C, D, F
What are the notes in the A minor pentatonic?
A, C, D, E, G
All of those pentatonic notes fit within the mode you were pointed to.
Just me, but, chord tones rule my bass line and pentatonic work for bass solos. Why? Most of the time the guys stick with the chord progression and a chord progression calls attention to the V7-I tonal center - a mode needs a modal vamp - if you do not have the vamp no modal mood is being created so why are you even thinking of using a mode? Pentatonic scales over the chord changes will give you all the notes you need for your solo plus not being in scale order help with not sounding like a scale exercise. Course nothing beats playing the tune for your solo.
Something to think about.