# "Create a patient" problem.

**URL:** https://discourse.kitware.com/t/create-a-patient-problem/200
**Category:** Pulse Physiology Engine
**Created:** [December 11, 2018, 9:06am UTC](https://discourse.kitware.com/t/create-a-patient-problem/200 "2018-12-11T09:06:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![warmgun44](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/w/e495f1/32.png) [@warmgun44](https://discourse.kitware.com/u/warmgun44)
#### Post date: [December 11, 2018, 9:06am UTC](https://discourse.kitware.com/t/create-a-patient-problem/200/1 "2018-12-11T09:06:09Z")

</div>

When I create a patient (as opposed to loading ‘StandardMale’ or another) I get the error:

Mouth Compartment’s volume fractions do not sum up to 1

I get the same error running ‘HowTo-CreateAPatient.cpp’. This is important for what I am doing since I really would like to simulate the patient with initial conditions such as blood pressure. Am I missing something?

---

<div class="post-metadata">

### Author: ![warmgun44](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/w/e495f1/32.png) [@warmgun44](https://discourse.kitware.com/u/warmgun44)
#### Post date: [December 11, 2018, 9:11am UTC](https://discourse.kitware.com/t/create-a-patient-problem/200/2 "2018-12-11T09:11:30Z")

</div>

PS: I am trying to simulate a patient with a certain BP/HR/etc. Im assuming the best way is to create a patient with these values. If there is a better way to set these values (after loading another patient?) Im interested to hear.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [December 11, 2018, 1:08pm UTC](https://discourse.kitware.com/t/create-a-patient-problem/200/3 "2018-12-11T13:08:40Z")

</div>

That is the correct thing to do.

I assume you are on master?  
I am in the process of updating master with a 2.0 release candidate from the 2.x branch. I am going to build out the current master and try to reproduce your problem to make sure I have addressed it.

I should have this figured out pretty soon today

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [December 11, 2018, 1:58pm UTC](https://discourse.kitware.com/t/create-a-patient-problem/200/4 "2018-12-11T13:58:56Z")

</div>

I built and ran ‘HowTo-CreateAPatient.cpp’ on the master branch and the 2.x branch

I was able to create a patient successfully on both.

Can you provide a little more information on what version of Pulse you are running and your system?

---

<div class="post-metadata">

### Author: ![warmgun44](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/w/e495f1/32.png) [@warmgun44](https://discourse.kitware.com/u/warmgun44)
#### Post date: [December 11, 2018, 8:42pm UTC](https://discourse.kitware.com/t/create-a-patient-problem/200/5 "2018-12-11T20:42:24Z")

</div>

I am running Ubuntu 16.04 with the latest Pulse as of last week. I just did a git pull though and there are changes so I am retrying.

I compiled the library as a SHARED library during this test.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [December 11, 2018, 8:49pm UTC](https://discourse.kitware.com/t/create-a-patient-problem/200/6 "2018-12-11T20:49:16Z")

</div>

Alright  
I do not recommend building with shared enabled.  
We use protobufs for serialization and it is pretty notorious for not working well across shared library boundaries.  
But this may only be an issue on windows, but it is something that I have not fully tested and could cause problems
